Test Current Release #687
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Current Release | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '45 16 * * 0' # <https://crontab.guru/#45_16_*_*_0> - "At 16:45 UTC on Sunday" | |
| - cron: '30 18 * * 0' # <https://crontab.guru/#30_18_*_*_0> - "At 18:30 UTC on Sunday" | |
| - cron: '30 19 * * 0' # <https://crontab.guru/#30_19_*_*_0> - "At 19:30 UTC on Sunday" | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| python-version: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| - "3.14" | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| package: [approvaltests, approvaltests-minimal] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: approvals/ApprovalTests.Python.StarterProject | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Replace package in requirements.txt | |
| run: | | |
| sed -i.bak 's/^approvaltests$/${{ matrix.package }}/' requirements.txt | |
| cat requirements.txt | |
| shell: bash | |
| - name: Run Tests | |
| run: | | |
| ./run_tests.sh | |
| shell: bash | |
| - name: Print ${{ matrix.package }} Version | |
| if: always() | |
| run: | | |
| .tox/py/bin/pip show ${{ matrix.package }} || .tox/py/Scripts/pip show ${{ matrix.package }} | |
| echo "## ${{ matrix.package }} Version" >> $GITHUB_STEP_SUMMARY | |
| (.tox/py/bin/pip show ${{ matrix.package }} || .tox/py/Scripts/pip show ${{ matrix.package }}) | grep Version >> $GITHUB_STEP_SUMMARY | |
| shell: bash | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v6 | |
| if: always() | |
| with: | |
| report_paths: 'test-reports/*.xml' | |
| detailed_summary: true |