File tree 1 file changed +22
-11
lines changed
1 file changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -30,22 +30,33 @@ jobs:
30
30
${{ runner.os }}-${{ matrix.python }}-dependencies-
31
31
- name : Install dependencies
32
32
run : |
33
- pip install --upgrade pip
33
+ python -m venv .venv
34
34
pip install poetry
35
- poetry config virtualenvs.in-project true
36
35
poetry run pip install --upgrade pip
37
36
poetry install
38
- - name : Run Checks
39
- uses : triaxtec/github-actions/python/run-checks@main
40
- with :
41
- module : openapi_python_client
42
37
43
- - name : End to End Tests
44
- run : poetry run pytest --cov=openapi_python_client end_to_end_tests
38
+ - name : Run Black
39
+ run : poetry run black . --check
40
+
41
+ - name : Run isort
42
+ run : poetry run isort . --check
43
+
44
+ - name : Run flake8
45
+ run : poetry run flake8 openapi_python_client
46
+
47
+ - name : Run safety
48
+ run : poetry export -f requirements.txt | poetry run safety check --bare --stdin
49
+
50
+ - name : Run mypy
51
+ run : poetry run mypy --show-error-codes openapi_python_client
52
+
53
+ - name : Run pytest
54
+ run : poetry run pytest --cov=openapi_python_client --cov-report=term-missing tests end_to_end_tests
45
55
46
- - name : Generate E2E Coverage
47
- run : poetry run coverage xml -o e2e-coverage.xml
56
+ - name : Generate coverage report
57
+ shell : bash
58
+ run : poetry run coverage xml
48
59
49
60
- uses : codecov/codecov-action@v2
50
61
with :
51
- files : ./coverage.xml,./e2e-coverage.xml
62
+ files : ./coverage.xml
You can’t perform that action at this time.
0 commit comments