Add pr checks pipeline #1
Workflow file for this run
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: PR Checks | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "export PATH=\$HOME/.local/bin:\$PATH" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: poetry install | |
- name: Run Tests | |
run: poetry run pytest tests/unit/ | |
- name: Lint Code | |
run: poetry run flake8 . |