-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (66 loc) · 2.01 KB
/
Copy pathci.yml
File metadata and controls
81 lines (66 loc) · 2.01 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
80
81
name: CI
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow_ref }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
name: lint
uses: bitcart/bitcart-actions/.github/workflows/lint.yml@master
with:
install-dependencies: |
uv sync --frozen --compile-bytecode
zizmor:
name: zizmor
uses: bitcart/bitcart-actions/.github/workflows/zizmor-audit.yml@master
permissions:
contents: read
security-events: write
test:
name: test-${{ matrix.python-version }}
needs: [lint, zizmor]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
env:
TEST_ARGS: "-o junit_family=legacy --junitxml test-results/junit.xml --cov-report html:coverage"
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: bitcart/bitcart-actions/actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install library
run: |
uv sync --frozen --compile-bytecode
- name: Run tests
run: |
just ci
- name: Upload coverage to Codecov
uses: bitcart/bitcart-actions/actions/codecov@master
if: ${{ !cancelled() }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: Tests - Python ${{ env.PYTHON }}
flags: tests
env_vars: PYTHON
upload_coverage: ${{ job.status == 'success' }}
- name: Upload test results
uses: bitcart/bitcart-actions/actions/upload-test-results@master
if: ${{ !cancelled() }}
with:
suffix: py${{ env.PYTHON }}
combine-coverage:
name: combine-coverage
uses: bitcart/bitcart-actions/.github/workflows/combine-coverage.yml@master
needs: test
if: ${{ !cancelled() }}