-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (38 loc) · 980 Bytes
/
Copy pathtest.yaml
File metadata and controls
41 lines (38 loc) · 980 Bytes
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
name: Test Python package
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
python: ["3.8", "3.13"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Setup uv
run: python -m pip install uv
- name: Install dependencies
run: python -m uv pip install --system nox[uv]
- name: Test with pytest
run: nox -db uv
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
pass:
name: Pass testing
needs: [test]
runs-on: ubuntu-latest
if: always()
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}