Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .bumpversion.cfg

This file was deleted.

132 changes: 0 additions & 132 deletions .github/CODE_OF_CONDUCT.md

This file was deleted.

106 changes: 0 additions & 106 deletions .github/CONTRIBUTING.md

This file was deleted.

66 changes: 27 additions & 39 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,40 @@
name: Tests
name: testing & quality

on:
push:
branches: [ main, dev ]
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint:
name: Lint
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.10" ]
qa:
name: linting and tests
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install graphviz
pip install tox
- name: Check code quality with flake8
run: tox run -e flake8
- name: Check package metadata with Pyroma
run: tox run -e pyroma
- name: Check static typing with MyPy
run: tox run -e mypy
tests:
name: Tests
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.10" ]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- name: check out code
uses: actions/checkout@v4

- name: set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install tox tox-uv
- name: Test with pytest and generate coverage file
run:
tox run -e py
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
cache: "pip"

- name: install package with dev dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]

- name: ruff lint
run: ruff check src

- name: ruff format check
run: ruff format --check src

- name: run tests
run: pytest -q
Loading