You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2025/03/11 22:43:15 UTC
(incubator-ponymail-foal) branch master updated: Need to show changes with Python 3.12+
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new fc363fd Need to show changes with Python 3.12+
fc363fd is described below
commit fc363fdb0a818139c43ef04a0de074a4e21934e9
Author: Sebb <se...@apache.org>
AuthorDate: Tue Mar 11 22:43:07 2025 +0000
Need to show changes with Python 3.12+
---
.github/workflows/unittest.yml | 3 +--
.github/workflows/{unittest.yml => unittest312.yml} | 16 ++++------------
2 files changed, 5 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml
index e2894a7..52fada5 100644
--- a/.github/workflows/unittest.yml
+++ b/.github/workflows/unittest.yml
@@ -18,7 +18,6 @@ jobs:
max-parallel: 1
fail-fast: false # test all Python versions
matrix:
- # Add 3.11 to see if it shows failures like 3.12
python-version: ["3.10", 3.11, 3.12, 3.13]
steps:
@@ -48,7 +47,7 @@ jobs:
run: |
cp tools/archiver.yaml.example tools/archiver.yaml
python -m pytest test/test_*.py
- - name: Test with Ponymail Unit tests
+ - name: Test with Ponymail Unit tests (fixed to allow for Python 3.12+ change)
run: |
sed -e '/incubator/s/# cropout:/cropout:/' tools/archiver.yaml.example >tools/archiver.yaml
cd pmtests
diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest312.yml
similarity index 79%
copy from .github/workflows/unittest.yml
copy to .github/workflows/unittest312.yml
index e2894a7..6532104 100644
--- a/.github/workflows/unittest.yml
+++ b/.github/workflows/unittest312.yml
@@ -1,4 +1,4 @@
-name: Unit Tests
+name: Unit Tests to expose the change in output for as_bytes() with Python 3.12+
on:
push:
@@ -18,8 +18,7 @@ jobs:
max-parallel: 1
fail-fast: false # test all Python versions
matrix:
- # Add 3.11 to see if it shows failures like 3.12
- python-version: ["3.10", 3.11, 3.12, 3.13]
+ python-version: [3.11, 3.12, 3.13]
steps:
- uses: actions/checkout@master
@@ -44,16 +43,9 @@ jobs:
# This only affects the appearance of the message body, so does not matter for compatibility
pip install html2text==2020.1.16 # optional dependency, but needed for tests
pip list
- - name: Test with pytest
+ - name: Test with original Ponymail Unit tests
run: |
cp tools/archiver.yaml.example tools/archiver.yaml
- python -m pytest test/test_*.py
- - name: Test with Ponymail Unit tests
- run: |
sed -e '/incubator/s/# cropout:/cropout:/' tools/archiver.yaml.example >tools/archiver.yaml
cd pmtests
- python runall.py --root ..
- - name: Check versions
- run: |
- webui/js/source/build.sh
- server/update_version.sh
+ python runall.py --root .. --yamldir yamlorig