Add cache in github actions for python and poetry #202
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: linters | |
| on: [push, pull_request] | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: "basic_games" | |
| - name: Setup Poetry environment | |
| uses: 5yutan5/setup-poetry-env@v1.1.0 | |
| with: | |
| python-version: 3.12 | |
| poetry-virtualenvs-in-project: true | |
| poetry-install-dependencies: false | |
| - name: Install dependencies | |
| run: | | |
| cd basic_games | |
| poetry --no-root install | |
| - name: Lint | |
| run: | | |
| cd basic_games | |
| poetry run poe lint |