Fix broken CI jobs on pybind11 branch. #1436
Workflow file for this run
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: Run Unit Tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
# trigger on pull requests | |
pull_request: | |
# trigger on all commits to trunk branches | |
push: | |
branches: | |
- "main" | |
- "next" | |
# trigger on request | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash -leo pipefail {0} | |
jobs: | |
run_tests: | |
name: Unit test [py${{ matrix.python }} ${{ matrix.os }}] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python: ['39', '310', '311', '312'] | |
include: | |
# Test macOS and windows on oldest and latest versions. | |
- os: 'macos-14' | |
python: '312' | |
- os: 'windows-latest' | |
python: '312' | |
- os: 'windows-latest' | |
python: '39' | |
- os: 'macos-14' | |
python: '39' | |
steps: | |
- name: Checkout Code | |
uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: Create Python Environment | |
uses: mamba-org/[email protected] | |
with: | |
micromamba-version: '1.5.8-0' | |
environment-name: test | |
environment-file: .github/workflows/env-files/py${{ matrix.python }}-conda-lock.yml | |
- name: Build and Install freud | |
run: | | |
uv pip install . --no-build-isolation --no-deps -v | |
- name: Run Tests | |
run: | | |
# Enable tests only for nanobind-converted modules | |
pytest tests/test_box_Box.py -v | |
pytest tests/test_parallel.py -v | |
# pytest tests/ -v | |
tests_complete: | |
name: All tests | |
if: always() | |
needs: [run_tests] | |
runs-on: ubuntu-latest | |
steps: | |
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}' | |
- name: Done | |
run: echo "Done." |