Skip to content

Commit 749cb56

Browse files
committed
Use cache in CI
1 parent f5e03cc commit 749cb56

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ jobs:
1717
python-version: [3.7, 3.8, 3.9, '3.10']
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
21+
- name: Install poetry
22+
run: pipx install poetry
2123
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v3
2325
with:
2426
python-version: ${{ matrix.python-version }}
25-
- name: Python Poetry Action
26-
uses: abatilo/[email protected]
27+
cache: 'poetry'
2728
- name: Install dependencies
2829
run: |
2930
poetry install
@@ -42,16 +43,18 @@ jobs:
4243
runs-on: ${{ matrix.os }}
4344
strategy:
4445
matrix:
45-
os: [ ubuntu-latest]
46+
os: [ubuntu-latest]
47+
python-version: [3.9]
4648

4749
steps:
48-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v3
51+
- name: Install poetry
52+
run: pipx install poetry
4953
- name: Set up Python ${{ matrix.python-version }}
50-
uses: actions/setup-python@v2
54+
uses: actions/setup-python@v3
5155
with:
5256
python-version: ${{ matrix.python-version }}
53-
- name: Python Poetry Action
54-
uses: abatilo/[email protected]
57+
cache: 'poetry'
5558

5659
- name: Run integration tests
5760
run: |

0 commit comments

Comments
 (0)