-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 940 Bytes
/
pytests.yml
File metadata and controls
45 lines (36 loc) · 940 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
42
43
44
45
name: pytests
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
strategy:
matrix:
python_version: [ "3.13", "3.14" ]
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 2
- name: Setup Gardenlinux
uses: ./.github/actions/setup
with:
python_version: ${{ matrix.python_version }}
- name: Install dependencies
run: poetry install --with dev
- name: Prepare environment
run: make install-test
- name: Run tests
run: |
export GLOCI_REGISTRY_TOKEN="invalid"
make test-coverage-ci
- name: Check for report
run: test -f coverage.xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}