Skip to content

Merge remote-tracking branch 'origin/main' #5

Merge remote-tracking branch 'origin/main'

Merge remote-tracking branch 'origin/main' #5

Workflow file for this run

name: Run linting and tests when pushing code.
on: [push]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'poetry'
- uses: pre-commit/[email protected]
testing:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install
- name: Test with pytest
run: poetry run pytest