Update dependency python to 3.14 #944
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: Run Unit Tests | |
| on: | |
| # trigger on pull requests | |
| pull_request: | |
| # trigger on all commits to main | |
| push: | |
| branches: | |
| - 'main' | |
| # trigger on request | |
| workflow_dispatch: | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.ref }}" | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: test (${{ matrix.os }}, ${{ matrix.python }}, ${{ matrix.dependencies }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-24.04] | |
| python: ['3.10', '3.11', '3.12', '3.13'] | |
| # Unused key to force creation of new entries in the matrix | |
| default: ['true'] | |
| include: | |
| - os: 'macos-14' | |
| python: '3.13' | |
| - os: 'windows-2025' | |
| python: '3.13' | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up Python ${{ matrix.python }} | |
| uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Set up Python environment | |
| uses: glotzerlab/workflows/setup-uv@894d9678188a02b06560fdeb2b9ba98d016cd371 # 0.10.0 | |
| with: | |
| lockfile: "requirements/requirements-test-all-py${{ matrix.python }}.txt" | |
| - name: Install the package | |
| run: | | |
| uv pip install . --no-build-isolation --no-deps --system -v | |
| - name: Test with pytest | |
| run: | | |
| pytest --cov=signac --cov-config=pyproject.toml --cov-report=xml tests/ -v | |
| - uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| # This job is used to provide a single requirement for branch merge conditions. | |
| tests_complete: | |
| name: Unit test | |
| if: always() | |
| needs: [test] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}' | |
| - name: Done | |
| run: echo "Done." |