File tree Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 32
32
python-version : 3.7
33
33
34
34
- name : Cache pip
35
- uses : actions/cache@v2
35
+ uses : actions/cache@v4
36
36
with :
37
37
path : ~/.cache/pip
38
38
key : ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
Original file line number Diff line number Diff line change @@ -11,18 +11,31 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v3
14
+
14
15
- name : Set up Python environment
15
16
uses : actions/setup-python@v4
16
17
with :
17
18
python-version : " 3.7"
19
+
20
+ - name : Cache pip
21
+ uses : actions/cache@v4
22
+ with :
23
+ path : ~/.cache/pip
24
+ key : ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-pip-
27
+ ${{ runner.os }}-
28
+
18
29
- name : Prepare environment
19
30
run : |
20
31
python3 -m pip install --upgrade pip
21
32
pip install -e .[release]
33
+
22
34
- name : Create packages
23
35
run : |
24
36
python3 setup.py sdist
25
37
python3 setup.py bdist_wheel
38
+
26
39
- name : Publish packages
27
40
run : |
28
41
python3 -m twine dist/*
Original file line number Diff line number Diff line change @@ -21,22 +21,36 @@ jobs:
21
21
22
22
steps :
23
23
- uses : actions/checkout@v2
24
+
24
25
- name : Set up Python ${{ matrix.python-version }}
25
26
uses : actions/setup-python@v2
26
27
with :
27
28
python-version : ${{ matrix.python-version }}
29
+
30
+ - name : Cache pip
31
+ uses : actions/cache@v4
32
+ with :
33
+ path : ~/.cache/pip
34
+ key : ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
35
+ restore-keys : |
36
+ ${{ runner.os }}-pip-
37
+ ${{ runner.os }}-
38
+
28
39
- name : Prepare environment
29
40
run : |
30
41
python3 -m pip install --upgrade pip
31
42
pip install -e .
43
+
32
44
- name : Lint with flake8
33
45
run : |
34
46
pip install -e .[dev]
35
47
flake8 . --count --show-source --statistics
48
+
36
49
- name : Check with MyPy
37
50
run : |
38
51
pip install -e .[test]
39
52
mypy source unit-tests system-tests
53
+
40
54
- name : Test with pytest
41
55
run : |
42
56
pip install .[test]
You can’t perform that action at this time.
0 commit comments