Skip to content

ci: run pytest and ruff on pull requests #8

ci: run pytest and ruff on pull requests

ci: run pytest and ruff on pull requests #8

Workflow file for this run

name: Python application
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Run ruff
run: |
poetry run ruff check .
- name: Test with pytest
run: |
cd tests
poetry run pytest --tb=long -rs