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
60 changes: 0 additions & 60 deletions .circleci/config.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: unit_tests
on: [push, pull_request]

jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {name: Linux36, python: '3.6', os: ubuntu-latest, tox: py36}
- {name: Linux37, python: '3.7', os: ubuntu-latest, tox: py37}
- {name: Linux38, python: '3.8', os: ubuntu-latest, tox: py38}
- {name: Linux39, python: '3.9', os: ubuntu-latest, tox: py39}
- {name: Linux310, python: '3.10', os: ubuntu-latest, tox: py310}
- {name: Linux311, python: '3.11', os: ubuntu-latest, tox: py311}
- {name: Style, python: '3.10', os: ubuntu-latest, tox: style}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: pip install tox
- name: Run app tox tests
run: |
tox -e ${{ matrix.tox }}
33 changes: 16 additions & 17 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
[tox]
isolated_build = True
envlist = py, black, interrogate, mypy
isolated_build = true
envlist = py, style


[testenv]
deps =
pytest
pytest-cov
commands =
python -m pytest --cov=codetiming --cov-fail-under=100 --cov-report=term-missing
{envpython} -m pytest --cov=codetiming --cov-fail-under=100 --cov-report=term-missing


[testenv:black]
deps = black
commands = python -m black --check codetiming/


[testenv:interrogate]
deps = interrogate
[testenv:style]
skip_install = true
commands =
interrogate --config=pyproject.toml


[testenv:mypy]
deps = mypy
commands = python -m mypy --strict codetiming/
deps =
black
flake8
interrogate
isort
mypy
commands =
{envpython} -m black --check --quiet codetiming/
{envpython} -m flake8 codetiming/
{envpython} -m interrogate --quiet --config=pyproject.toml
{envpython} -m isort --check codetiming/
{envpython} -m mypy --strict codetiming/