Skip to content

Commit 2788ac4

Browse files
committed
Add cache in github actions for python and poetry
1 parent f14428a commit 2788ac4

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/linters.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,16 @@ on: [push, pull_request]
55
jobs:
66
checks:
77
runs-on: ubuntu-latest
8+
defaults:
9+
run:
10+
working-directory: basic_games
811
steps:
912
- uses: actions/checkout@v4
1013
with:
11-
path: "basic_games"
12-
- name: Set up Python
13-
uses: actions/setup-python@v2
14+
path: basic_games
15+
- name: Setup and Cache Python Poetry
16+
uses: packetcoders/action-setup-cache-python-poetry@v1.2.0
1417
with:
1518
python-version: 3.12
16-
- uses: abatilo/actions-poetry@v2
17-
- name: Install
18-
run: |
19-
cd basic_games
20-
poetry --no-root install
2119
- name: Lint
22-
run: |
23-
cd basic_games
24-
poetry run poe lint
20+
run: poetry run poe lint

0 commit comments

Comments
 (0)