@@ -2,9 +2,9 @@ name: Run Checks
2
2
3
3
on :
4
4
push :
5
- branches : ["main"]
5
+ branches : [ "main" ]
6
6
pull_request :
7
- branches : ["main"]
7
+ branches : [ "main" ]
8
8
9
9
jobs :
10
10
test :
@@ -14,50 +14,55 @@ jobs:
14
14
os : [ ubuntu-latest, macos-latest, windows-latest ]
15
15
runs-on : ${{ matrix.os }}
16
16
steps :
17
- - uses : actions/checkout@v2
18
- - name : Set up Python
19
- uses : actions/setup-python@v2
20
- with :
21
- python-version : ${{ matrix.python }}
22
- - name : Cache dependencies
23
- uses : actions/cache@v2
24
- with :
25
- path : .venv
26
- key : ${{ runner.os }}-${{ matrix.python }}-dependencies-${{ hashFiles('**/poetry.lock') }}
27
- restore-keys : |
28
- ${{ runner.os }}-${{ matrix.python }}-dependencies
29
- - name : Install dependencies
30
- run : |
31
- pip install poetry
32
- python -m venv .venv
33
- poetry run python -m pip install --upgrade pip
34
- poetry install
35
-
36
- - name : Run Black
37
- run : poetry run black . --check
38
-
39
- - name : Run isort
40
- run : poetry run isort . --check
41
-
42
- - name : Run flake8
43
- run : poetry run flake8 openapi_python_client
44
-
45
- - name : Run safety
46
- run : poetry export -f requirements.txt | poetry run safety check --bare --stdin
47
-
48
- - name : Run mypy
49
- run : poetry run mypy --show-error-codes openapi_python_client
50
-
51
- - name : Run pylint
52
- run : poetry run pylint openapi_python_client
53
-
54
- - name : Run pytest
55
- run : poetry run pytest --cov=openapi_python_client --cov-report=term-missing tests end_to_end_tests/test_end_to_end.py
56
-
57
- - name : Generate coverage report
58
- shell : bash
59
- run : poetry run coverage xml
60
-
61
- - uses : codecov/codecov-action@v2
62
- with :
63
- files : ./coverage.xml
17
+ - uses : actions/checkout@v2
18
+ - name : Set up Python
19
+ uses : actions/setup-python@v2
20
+ with :
21
+ python-version : ${{ matrix.python }}
22
+ - name : Cache dependencies
23
+ uses : actions/cache@v2
24
+ with :
25
+ path : .venv
26
+ key : ${{ runner.os }}-${{ matrix.python }}-dependencies-${{ hashFiles('**/poetry.lock') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-${{ matrix.python }}-dependencies
29
+ - name : Install Poetry
30
+ run : pip install poetry
31
+
32
+ - name : Create Virtual Environment
33
+ run : python -m venv .venv
34
+
35
+ - name : Upgrade pip
36
+ run : poetry run python -m pip install --upgrade pip
37
+
38
+ - name : Install Dependencies
39
+ run : poetry install
40
+
41
+ - name : Run Black
42
+ run : poetry run black . --check
43
+
44
+ - name : Run isort
45
+ run : poetry run isort . --check
46
+
47
+ - name : Run flake8
48
+ run : poetry run flake8 openapi_python_client
49
+
50
+ - name : Run safety
51
+ run : poetry export -f requirements.txt | poetry run safety check --bare --stdin
52
+
53
+ - name : Run mypy
54
+ run : poetry run mypy --show-error-codes openapi_python_client
55
+
56
+ - name : Run pylint
57
+ run : poetry run pylint openapi_python_client
58
+
59
+ - name : Run pytest
60
+ run : poetry run pytest --cov=openapi_python_client --cov-report=term-missing tests end_to_end_tests/test_end_to_end.py
61
+
62
+ - name : Generate coverage report
63
+ shell : bash
64
+ run : poetry run coverage xml
65
+
66
+ - uses : codecov/codecov-action@v2
67
+ with :
68
+ files : ./coverage.xml
0 commit comments