Skip to content

Update actions/checkout digest to df4cb1c (#314) #534

Update actions/checkout digest to df4cb1c (#314)

Update actions/checkout digest to df4cb1c (#314) #534

Workflow file for this run

name: Run Unit Tests
on:
pull_request:
push:
branches:
- 'main'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
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', '3.14']
include:
- os: 'macos-26'
python: '3.14'
- os: 'windows-2025'
python: '3.14'
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
submodules: "recursive"
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: ${{ matrix.python }}
- name: Setup Python environment
uses: glotzerlab/workflows/setup-uv@204dc7c0f82720090703712694b7cab761aacaa0 # 0.13.0
with:
lockfile: "requirements/requirements-test-py${{ matrix.python }}.txt"
only-binary: ":none:"
- name: Install the package
run: |
uv pip install . --no-build-isolation --no-deps --system -v
- name: Test with pytest
run: |
pytest --cov=signac_dashboard --cov-config=pyproject.toml --cov-report=xml tests/ -v
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6
# 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."