| name: Test corpus against versions |
| # The test results have been patched to fix currently known (unfixed) errors in Python 3.12+ |
| # This is to make it easier to detect additional errors |
| # See unittest312.yml for full tests |
| |
| on: [push,workflow_dispatch] |
| |
| jobs: |
| build: |
| |
| runs-on: ubuntu-latest |
| # continue-on-error: true # want to test all versions |
| strategy: |
| max-parallel: 1 |
| matrix: |
| python-version: [3.8, 3.12, 3.13] |
| |
| steps: |
| - uses: actions/checkout@master |
| with: |
| persist-credentials: false |
| - uses: actions/checkout@master |
| with: |
| persist-credentials: false |
| repository: apache/incubator-ponymail |
| path: ponymail-0.10 |
| ref: refs/tags/0.10 |
| - uses: actions/checkout@master |
| with: |
| persist-credentials: false |
| repository: apache/incubator-ponymail |
| path: ponymail-0.11 |
| ref: refs/tags/0.11 |
| - uses: actions/checkout@master |
| with: |
| persist-credentials: false |
| repository: apache/incubator-ponymail |
| path: ponymail |
| - uses: actions/checkout@master |
| with: |
| persist-credentials: false |
| repository: apache/incubator-ponymail-foal |
| path: ponymail-foal |
| - name: Set up Python ${{ matrix.python-version }} |
| uses: actions/setup-python@v7 |
| with: |
| python-version: ${{ matrix.python-version }} |
| - name: Install dependencies |
| run: | |
| python -m pip install --upgrade pip |
| pip install -r requirements.txt |
| pip list |
| - name: Ponymail 0.11 Init |
| run: | |
| cd ponymail-0.11 |
| sed -e 's/# cropout:/cropout:/' tools/ponymail.cfg.sample >tools/ponymail.cfg |
| - name: Ponymail 0.11 Test main |
| run: | |
| PYTHONHASHSEED=0 python runall.py --root ponymail-0.11 |
| - name: Ponymail init |
| if: always() |
| run: | |
| cd ponymail |
| sed -e 's/# cropout:/cropout:/' tools/ponymail.cfg.sample >tools/ponymail.cfg |
| - name: Ponymail Test main |
| if: always() |
| run: | |
| python runall.py --root ponymail |
| - name: Foal init |
| if: always() |
| run: | |
| cd ponymail-foal |
| sed -e 's/# cropout:/cropout:/' tools/ponymail.yaml.example >tools/ponymail.yaml |
| - name: Foal Test main |
| if: always() |
| run: | |
| python runall.py --root ponymail-foal |
| - name: Ponymail 0.10 init |
| if: always() |
| run: | |
| cd ponymail-0.10 |
| sed -e 's/#cropout:.*/cropout: (\\w+\\.\\w+)\\.incubator\\.apache\\.org \\1.apache.org/' tools/ponymail.cfg.sample >tools/ponymail.cfg |
| - name: Ponymail 0.10 Test main |
| if: always() |
| run: | |
| PYTHONHASHSEED=0 python runall.py --root ponymail-0.10 |