-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.07 KB
/
test-check.yaml
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
name: Test 🧪 & Check 🧐
on:
push:
branches:
- "**"
tags:
- "v*"
pull_request:
branches:
- "**"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
environment: [test-py312]
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
environments: ${{ matrix.environment }}
- name: Run tests
run: pixi r -e ${{ matrix.environment }} test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
check:
runs-on: ubuntu-latest
strategy:
matrix:
environment: [dev-py312]
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
environments: ${{ matrix.environment }}
- name: Run check
run: pixi r -e ${{ matrix.environment }} check
call-build-publish:
if: startsWith(github.ref, 'refs/tags/v')
needs: [test, check]
uses: ./.github/workflows/build-publish.yaml