-
Notifications
You must be signed in to change notification settings - Fork 59
75 lines (66 loc) · 1.76 KB
/
main.yml
File metadata and controls
75 lines (66 loc) · 1.76 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: CI
on:
push:
branches: [ "main" ]
paths-ignore:
- 'docs/**'
pull_request:
branches: [ "main" ]
paths-ignore:
- 'docs/**'
schedule:
- cron: "0 0 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.environment }}-build
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
environment: [test-py311, test-py312, min-deps, minio]
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.9.3
with:
pixi-version: v0.59.0
environments: ${{ matrix.environment }}
- name: List installed libraries
run: |
pixi install --environment ${{ matrix.environment }}
pixi list --environment ${{ matrix.environment }}
- name: Running Tests
run: |
pixi run -e ${{ matrix.environment }} run-tests-xml-cov
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v5.5.1
with:
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
check-docs:
name: check-docs
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.9.3
with:
pixi-version: v0.59.0
- name: List installed libraries
run: |
pixi install --environment docs
pixi list --environment docs
- name: Check documentation build for warnings
run: |
pixi run -e docs check-docs