0.0.8 #9
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: Unit Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install deps | |
run: | | |
pip install poetry poethepoet | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
cache: poetry | |
cache-dependency-path: "poetry.lock" | |
- name: Poetry install | |
run: | | |
poetry install --with dev,test,email | |
- name: Run tests | |
run: | | |
poe test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install deps | |
run: | | |
pip install poetry poethepoet | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
cache: poetry | |
cache-dependency-path: "poetry.lock" | |
- name: Poetry install | |
run: | | |
poetry install --with dev | |
- name: Lint code | |
run: | | |
poe lint |