Exhaustive Package Test (slow) #2
This file contains 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: Exhaustive Package Test (slow) | |
on: | |
workflow_dispatch: | |
concurrency: | |
group: exhaustive-package-test-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test_all_packages: | |
name: Exhaustive Package Test | |
continue-on-error: true | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Install nox | |
run: python -m pip install nox | |
- name: Execute Tests | |
continue-on-error: true | |
run: nox --non-interactive --session test_all_packages-${{ matrix.python-version }} | |
- name: Store reports as artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: reports-raw | |
path: reports | |
report_all_packages: | |
name: Collate test reports | |
needs: test_all_packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get report artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: reports-raw | |
- name: Collate reports | |
run: | | |
ls # DEBUG | |
mkdir reports | |
cat all_packages_report_legend.txt > all_nodeps_reports_lf.txt | |
cat all_packages_nodeps_report_* >> all_nodeps_reports_lf.txt | |
tr -d '\r' < all_nodeps_reports_lf.txt > reports/all_nodeps_reports.txt | |
cat all_packages_nodeps_errors_* > all_nodeps_errors_lf.txt | |
tr -d '\r' < all_nodeps_errors_lf.txt > reports/all_nodeps_errors.txt | |
cat all_packages_report_legend.txt > all_deps_reports_lf.txt | |
cat all_packages_deps_report_* >> all_deps_reports_lf.txt | |
tr -d '\r' < all_deps_reports_lf.txt > reports/all_deps_reports.txt | |
cat all_packages_deps_errors_* > all_deps_errors_lf.txt | |
tr -d '\r' < all_deps_errors_lf.txt > reports/all_deps_errors.txt | |
- name: Store collated and raw reports as artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: reports-final | |
path: reports |