forked from openapi-generators/openapi-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.24 KB
/
checks.yml
File metadata and controls
46 lines (41 loc) · 1.24 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
name: Run Checks
on:
push:
branches: ["**"]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '0 23 * * 2'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: [ 3.6, 3.7, 3.8, 3.9 ]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Cache dependencies
uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.os }}-${{ matrix.python }}-dependencies-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python }}-dependencies-
- name: Install dependencies
uses: triaxtec/github-actions/python/install-and-configure-poetry@main
- name: Run Checks
uses: triaxtec/github-actions/python/run-checks@main
with:
module: openapi_python_client
- name: End to End Tests
run: poetry run pytest --cov=openapi_python_client end_to_end_tests
- name: Generate E2E Coverage
run: poetry run coverage xml -o e2e-coverage.xml
- uses: codecov/codecov-action@v1
with:
files: ./coverage.xml,./e2e-coverage.xml