-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (36 loc) · 953 Bytes
/
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
name: Continuous integration
on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.pixi-environment }} - ${{ matrix.os }}
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
pixi-environment: ["py39", "py310", "py311", "py312"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
manifest-path: pyproject.toml
- name: Test with pytest
run: pixi run tests-ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}