Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Add a very basic empty Python project #3

Add a very basic empty Python project

Add a very basic empty Python project #3

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install -e .
pip install -r dev_requirements.txt
- name: Run linting
run: |
black --check .
# E501 = line too long; anything up to 100-ish is fine in my book
# (the "ish" is intentional; see https://www.youtube.com/watch?v=wf-BqAjZb8M)
#
# E203/W503/W504 = this is where black and flake8 conflict,
# see https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated
flake8 --ignore=E501,E203,W503 --extend-select=W504
- name: Check types
run: mypy src tests
- name: Run tests
run: |
coverage run -m pytest tests
coverage report