Skip to content

Commit 21c46e7

Browse files
committed
ci: cache for mypy and black
1 parent 8ddd3de commit 21c46e7

2 files changed

Lines changed: 20 additions & 6 deletions

File tree

.github/workflows/meta-checks.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414

1515
steps:
16+
- name: Get pip cache dir
17+
id: pip-cache
18+
shell: bash
19+
run: |
20+
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
21+
22+
- name: cache
23+
uses: actions/cache@v4
24+
with:
25+
path: ${{ steps.pip-cache.outputs.dir }}
26+
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('pyproject.toml') }}
27+
restore-keys: |
28+
${{ runner.os }}-${{ matrix.python-version }}-pip-
29+
1630
- uses: actions/checkout@v4
1731

1832
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}

.github/workflows/run-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Python tests
22

3-
on: [push, pull_request]
4-
# pull_request: {}
5-
# push:
6-
# branches:
7-
# - development
8-
# - master
3+
on:
4+
pull_request: {}
5+
push:
6+
branches:
7+
- development
8+
- master
99

1010
jobs:
1111
build:

0 commit comments

Comments
 (0)