-
-
Notifications
You must be signed in to change notification settings - Fork 33
50 lines (47 loc) · 1.29 KB
/
test.yml
File metadata and controls
50 lines (47 loc) · 1.29 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
name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.11", "3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
env:
CI: "true"
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v8.0.0
- name: Run tests
run: >
uv run --python ${{ matrix.python-version }}
--with pytest --with pytest-cov
python -m pytest
--cov=hackertray
--cov-report=lcov:coverage.lcov
--cov-report=markdown-append:$GITHUB_STEP_SUMMARY
- name: Upload to Coveralls
if: matrix.python-version == '3.14'
uses: coverallsapp/github-action@v2
with:
file: coverage.lcov
format: lcov
flag-name: run-${{ matrix.os }}-${{ matrix.python-version }}
parallel: true
coveralls-finish:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "run-ubuntu-latest-3.14,run-macos-latest-3.14"