This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
110 lines (89 loc) · 2.65 KB
/
run-tests.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Tests
on: [push]
jobs:
pytest:
name: Test and publish workflow
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: autoreduction/autoreduce-actions/build@main
with:
package_name: autoreduce_qp
- name: Remote dotenv to Environment (configserver alike)
uses: Steph0/[email protected]
with:
repository: "autoreduction/autoreduce-workspace"
- name: Install Tox
run: python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox -e pytest
- uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
name: codecov-umbrella
flags: backend
fail_ci_if_error: true
verbose: true
dependency-check:
name: Dependency-Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ job.container.image }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ job.container.image }}-pip-
- name: Pip install
run: |
pip install --upgrade pip
pip install -e .[dev]
Inspection:
name: Code Inspection
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: autoreduction/autoreduce-actions/build@main
with:
package_name: autoreduce_qp
- name: Install Tox
run: python -m pip install tox tox-gh-actions
- name: Run code inspection with tox
run: tox -e code_inspection