Skip to content

Commit 746d66e

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

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/linters.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ 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 Poetry environment
16+
uses: 5yutan5/setup-poetry-env@v1.1.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
19+
poetry-virtualenvs-in-project: true
20+
poetry-install-dependencies: false
21+
- name: Install dependencies
22+
run: poetry --no-root install
2123
- name: Lint
22-
run: |
23-
cd basic_games
24-
poetry run poe lint
24+
run: poetry run poe lint

0 commit comments

Comments
 (0)