-
-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (42 loc) · 1.05 KB
/
polite-config.yml
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
name: polite-config actions
on:
push:
branches: [ next ]
paths:
- '.github/workflows/polite-config.yml'
- 'packages/polite-config/**'
pull_request:
branches: [ next ]
paths:
- '.github/workflows/polite-config.yml'
- 'packages/polite-config/**'
jobs:
pytest:
name: Unit tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
defaults:
run:
working-directory: packages/polite-config
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Install package
run: |
poetry install --with test
- name: Run tests
run: |
poetry run pytest --cov --cov-report=xml tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
flags: polite-config