Skip to content

Refresh pip-compile outputs (#109) #378

Refresh pip-compile outputs (#109)

Refresh pip-compile outputs (#109) #378

Workflow file for this run

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.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: test (${{ matrix.os }}, ${{ matrix.python }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-24.04]
python: ['3.10', '3.11', '3.12', '3.13']
include:
# Other tests
- os: 'macos-26'
python: '3.10'
- os: 'macos-26'
python: '3.13'
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: "recursive"
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python }}
- name: Set up Python environment
uses: glotzerlab/workflows/setup-uv@00c67cb577c36bdc2570845fc62d1a30e3383012 # 0.14.0
with:
lockfile: ".github/workflows/environments/requirements${{ matrix.python }}.txt"
- name: Install package
run: |
python --version
uv pip install . --no-build-isolation --no-deps --system -v
- name: Test with pytest
run: |
python -m pytest -v
# 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: exit 0