Skip to content

Commit 9408288

Browse files
authored
Add cache to CI (#10)
1 parent 422d4c3 commit 9408288

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,18 @@ jobs:
1717

1818
steps:
1919
- uses: actions/[email protected]
20-
- name: Setup Python ${{ matrix.python-version }}
21-
uses: actions/[email protected]
20+
- uses: actions/[email protected]
2221
with:
2322
python-version: ${{ matrix.python-version }}
23+
- uses: actions/[email protected]
24+
with:
25+
path: ~/.cache/pip
26+
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}
27+
restore-keys: |
28+
${{ runner.os }}-${{ matrix.python-version }}-pip-
2429
- name: Install flit
2530
run: pip install flit
2631
- name: Build
2732
run: make
2833
- name: Upload coverage
29-
uses: codecov/[email protected]
34+
uses: codecov/[email protected]

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010

1111
steps:
1212
- uses: actions/[email protected]
13-
- name: Setup Python 3.8
14-
uses: actions/[email protected]
13+
- uses: actions/[email protected]
1514
with:
1615
python-version: 3.9
1716
- name: Install flit
@@ -20,4 +19,4 @@ jobs:
2019
env:
2120
FLIT_USERNAME: ${{ secrets.FLIT_USERNAME }}
2221
FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }}
23-
run: flit publish
22+
run: flit publish

0 commit comments

Comments
 (0)