feat: cache poetry on gh-actions #44
This file contains 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: Backend | |
on: | |
push: | |
branches: | |
- '*' | |
paths: | |
- 'backend/**' | |
pull_request: | |
branches: | |
- '*' | |
paths: | |
- 'backend/**' | |
jobs: | |
lint: | |
defaults: | |
run: | |
working-directory: ./backend | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Python, Poetry and Dependencies | |
uses: packetcoders/action-setup-cache-python-poetry@main | |
with: | |
python-version: 3.12 | |
poetry-version: 1.8.4 | |
install-args: --directory=./backend | |
- name: Run isort and flake8 | |
run: poetry run poe lint |