-
Notifications
You must be signed in to change notification settings - Fork 52
69 lines (58 loc) · 1.65 KB
/
test.yaml
File metadata and controls
69 lines (58 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: test
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
pull_request:
push:
branches:
- "main"
- "next"
workflow_dispatch:
jobs:
run_tests:
name: Unit test [py${{ matrix.python }} ${{ matrix.os }}]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04]
python: ['312', '313', '314']
include:
# Test macOS, windows, and ARM Linux on oldest and latest versions.
- os: 'ubuntu-24.04-arm'
python: '314'
- os: 'macos-15'
python: '314'
- os: 'windows-2025'
python: '314'
- os: 'windows-2025'
python: '312'
- os: 'macos-14'
python: '312'
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
- name: Create Python Environment
uses: prefix-dev/setup-pixi@1b2de7f3351f171c8b4dfeb558c639cb58ed4ec0 # v0.9.5
with:
pixi-version: v0.54.1
cache: false
environments: py${{ matrix.python }}
activate-environment: true
- name: Build and Install freud
run: |
uv pip install . --no-build-isolation --no-deps -v --system
- name: Run Tests
run: 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."