-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (40 loc) · 1.05 KB
/
ci.yaml
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
name: pyautoenv test
on:
pull_request:
push:
branches: [main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Code Quality
run: |
python -m pip install pre-commit
pre-commit run --all-files
- name: Test
run: |
python -m pip install poetry
poetry install --only=test
poetry run pytest --cov --cov-report=term-missing --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
test-windows:
name: Test-Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Test
run: |
python -m pip install poetry
poetry install --only=test
poetry run pytest --cov --cov-report=term-missing