-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 860 Bytes
/
python-ci.yml
File metadata and controls
44 lines (34 loc) · 860 Bytes
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: Python CI
permissions:
contents: read
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# When this workflow is queued, automatically cancel any previous running
# or pending jobs from the same branch
concurrency:
group: conda-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Build and test
uses: prefix-dev/setup-pixi@v0.9.4
with:
pixi-version: v0.67.0
cache: true
- run: pixi run test
- name: Upload pytest and coverage results
uses: actions/upload-artifact@v4
if: always()
with:
name: testcoverage-${{ matrix.os }}-py${{ matrix.python-version }}
path: |
htmlcov/*