Add Poetry example #1
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: Poetry workflow | |
on: | |
push: | |
paths: | |
- 'poetry-demo/**' | |
defaults: | |
run: | |
working-directory: ./poetry-demo | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Lint | |
run: poetry run ruff check | |
- name: Run tests | |
run: poetry run pytest |