Skip to content

Commit 7e69e6d

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

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/linters.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@ name: linters
22

33
on: [push, pull_request]
44

5+
defaults:
6+
run:
7+
working-directory: ./basic_games
8+
59
jobs:
610
checks:
711
runs-on: ubuntu-latest
812
steps:
913
- uses: actions/checkout@v4
1014
with:
1115
path: "basic_games"
12-
- name: Set up Python
13-
uses: actions/setup-python@v2
16+
- name: Setup Poetry environment
17+
uses: 5yutan5/setup-poetry-env@v1.1.0
1418
with:
1519
python-version: 3.12
16-
- uses: abatilo/actions-poetry@v2
17-
- name: Install
18-
run: |
19-
cd basic_games
20-
poetry --no-root install
20+
poetry-virtualenvs-in-project: true
21+
poetry-install--no-root: true
2122
- name: Lint
22-
run: |
23-
cd basic_games
24-
poetry run poe lint
23+
run: poetry run poe lint

0 commit comments

Comments
 (0)