-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 901 Bytes
/
test.yml
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
name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: test-${{ github.head_ref }}
cancel-in-progress: true
env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
jobs:
run:
name: ${{ matrix.pixi-environment }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
pixi-environment:
- py310-base
- py310-xarray
- py311-base
- py311-xarray
- py312-base
- py312-xarray
steps:
- uses: actions/checkout@v4
- name: Set up Pixi
uses: prefix-dev/[email protected]
with:
cache: true
environments: ${{ matrix.pixi-environment }}
- name: Run tests
run: pixi run --environment ${{ matrix.pixi-environment }} test