Skip to content

Commit a96db2f

Browse files
authored
ci: Switch to GH Actions (#289)
1 parent 5625dde commit a96db2f

File tree

2 files changed

+39
-81
lines changed

2 files changed

+39
-81
lines changed

.circleci/config.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

.github/workflows/checks.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Run Checks
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python: [ 3.6, 3.7, 3.8, 3.9 ]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: ${{ matrix.python }}
17+
- name: Cache dependencies
18+
uses: actions/cache@v2
19+
with:
20+
path: .venv
21+
key: ${{ runner.os }}-${{ matrix.python }}-dependencies-${{ hashFiles('**/poetry.lock') }}
22+
restore-keys: |
23+
${{ runner.os }}-${{ matrix.python }}-dependencies-
24+
- name: Install dependencies
25+
uses: triaxtec/github-actions/python/install-and-configure-poetry@main
26+
- name: Run Checks
27+
uses: triaxtec/github-actions/python/run-checks@main
28+
with:
29+
module: openapi_python_client
30+
31+
- name: End to End Tests
32+
run: poetry run pytest --cov=openapi_python_client end_to_end_tests
33+
34+
- name: Generate E2E Coverage
35+
run: poetry run coverage xml -o e2e-coverage.xml
36+
37+
- uses: codecov/codecov-action@v1
38+
with:
39+
files: ./coverage.xml,./e2e-coverage.xml

0 commit comments

Comments
 (0)