Bump filelock from 3.20.0 to 3.20.1 #1719
Workflow file for this run
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 workflow | |
| permissions: | |
| contents: read | |
| checks: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| backend: [numpy, pytorch, jax] | |
| python-version: ["3.11", "3.12", "3.13"] | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Install system build dependencies (when binary not available) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| gfortran pkg-config ninja-build \ | |
| libopenblas-dev liblapack-dev \ | |
| libfftw3-dev | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install poetry | |
| poetry env use python | |
| poetry install --extras "healpy_support" | |
| - name: Install pytorch specific dependencies afterward | |
| if: ${{ matrix.backend == 'pytorch' }} | |
| run: | | |
| poetry install --extras "healpy_support" --extras "pytorch_support" | |
| - name: Run tests | |
| run: | | |
| export PYRECEST_BACKEND=${{ matrix.backend }} | |
| poetry run python -m pytest --rootdir . -v --strict-config --junitxml=junit_test_results_${{ matrix.backend }}.xml ./pyrecest | |
| env: | |
| PYTHONPATH: ${{ github.workspace }} | |
| - name: Upload test result artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.backend }}-${{ matrix.python-version }}-test-results | |
| path: junit_test_results_${{ matrix.backend }}.xml | |
| publish-results: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| if: always() | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| steps: | |
| - name: Download all test result artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: test-results | |
| - name: Publish test results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| with: | |
| files: | | |
| test-results/*/junit_test_results_*.xml |