Skip to content

Commit ba7be03

Browse files
Updated all workflows.
1 parent 880cc49 commit ba7be03

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.github/workflows/performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
python-version: 3.7
3333

3434
- name: Cache pip
35-
uses: actions/cache@v2
35+
uses: actions/cache@v4
3636
with:
3737
path: ~/.cache/pip
3838
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}

.github/workflows/publish.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,31 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14+
1415
- name: Set up Python environment
1516
uses: actions/setup-python@v4
1617
with:
1718
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+
1829
- name: Prepare environment
1930
run: |
2031
python3 -m pip install --upgrade pip
2132
pip install -e .[release]
33+
2234
- name: Create packages
2335
run: |
2436
python3 setup.py sdist
2537
python3 setup.py bdist_wheel
38+
2639
- name: Publish packages
2740
run: |
2841
python3 -m twine dist/*

.github/workflows/pullrequest.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,36 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v2
24+
2425
- name: Set up Python ${{ matrix.python-version }}
2526
uses: actions/setup-python@v2
2627
with:
2728
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+
2839
- name: Prepare environment
2940
run: |
3041
python3 -m pip install --upgrade pip
3142
pip install -e .
43+
3244
- name: Lint with flake8
3345
run: |
3446
pip install -e .[dev]
3547
flake8 . --count --show-source --statistics
48+
3649
- name: Check with MyPy
3750
run: |
3851
pip install -e .[test]
3952
mypy source unit-tests system-tests
53+
4054
- name: Test with pytest
4155
run: |
4256
pip install .[test]

0 commit comments

Comments
 (0)