-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.04 KB
/
ci.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
43
44
name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
# Many color libraries just need this to be set to any value, but at least
# one distinguishes color depth, where "3" -> "256-bit color".
FORCE_COLOR: 3
jobs:
tests:
name: Tests ${{ matrix.runs-on }} ${{ matrix.environment }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
environment: [ci-py310, ci-py313]
runs-on: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.39.4
cache: true
environments: ${{ matrix.environment }}
- name: quantity-array tests
run: pixi run --environment=${{ matrix.environment }} tests
- name: array-api-tests
run: pixi run --environment=${{ matrix.environment }} xp-tests