-
-
Notifications
You must be signed in to change notification settings - Fork 41
79 lines (73 loc) · 2.54 KB
/
Copy pathtests.yml
File metadata and controls
79 lines (73 loc) · 2.54 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
76
77
78
79
name: Tests
on: [ push, pull_request ]
permissions:
contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
coverage:
name: Release + Coverage ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
environment: [coverage]
steps:
- name: Checkout xsf
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup test environment
uses: ./.github/setup-test-env
with:
environment: ${{ matrix.environment }}
- name: Determine number of workers
uses: ./.github/num-workers
- name: Run tests
run: pixi run --environment=${{ matrix.environment }} tests $NUM_WORKERS
- name: Generate coverage report
run: pixi run --skip-deps coverage
- name: Upload HTML coverage report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: cov-html-${{ matrix.runs-on }}
path: .pixi/envs/coverage/share/xsf/cov/coverage_report/**
tests-release:
# for platforms without coverage support
name: Release
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [windows-latest]
environment: [tests-release]
steps:
- name: Checkout xsf
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup test environment
uses: ./.github/setup-test-env
with:
environment: ${{ matrix.environment }}
- name: Determine number of workers
uses: ./.github/num-workers
- name: Run tests
run: pixi run --environment=${{ matrix.environment }} tests $NUM_WORKERS
tests-debug:
name: Debug ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, ubuntu-24.04-arm]
environment: [tests-debug]
steps:
- name: Checkout xsf
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup test environment
uses: ./.github/setup-test-env
with:
environment: ${{ matrix.environment }}
- name: Determine number of workers
uses: ./.github/num-workers
- name: Run tests
run: pixi run --environment=${{ matrix.environment }} tests $NUM_WORKERS