-
-
Notifications
You must be signed in to change notification settings - Fork 23
51 lines (43 loc) · 1.32 KB
/
Copy pathpr-tests.yml
File metadata and controls
51 lines (43 loc) · 1.32 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
name: Pull Request Tests
on:
pull_request:
branches:
- main
# Use concurrency to ensure that only one instance of this workflow is running at a time
concurrency:
group: pr-tests-${{ github.ref_name }}
cancel-in-progress: true
# installs mamba-org/setup-micromamba@v2 on all 3 platforms using matrix and runs pytest:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- uses: prefix-dev/setup-pixi@v0.9.6 # https://github.com/prefix-dev/setup-pixi
with:
pixi-version: v0.68.0
cache: true
environments: lint
- run: pixi run lint
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- uses: prefix-dev/setup-pixi@v0.9.6
with:
pixi-version: v0.68.0
environments: tests
cache: true
- name: Runs Tests
run: pixi run -e tests test