Skip to content

Commit f8c1563

Browse files
authored
Switch to GitHub actions for CI (#33)
1 parent a8b2dcc commit f8c1563

File tree

3 files changed

+43
-77
lines changed

3 files changed

+43
-77
lines changed

.circleci/config.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/unit_tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: unit_tests
2+
on: [push, pull_request]
3+
4+
jobs:
5+
tests:
6+
name: ${{ matrix.name }}
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
include:
12+
- {name: Linux36, python: '3.6', os: ubuntu-latest, tox: py36}
13+
- {name: Linux37, python: '3.7', os: ubuntu-latest, tox: py37}
14+
- {name: Linux38, python: '3.8', os: ubuntu-latest, tox: py38}
15+
- {name: Linux39, python: '3.9', os: ubuntu-latest, tox: py39}
16+
- {name: Linux310, python: '3.10', os: ubuntu-latest, tox: py310}
17+
- {name: Linux311, python: '3.11', os: ubuntu-latest, tox: py311}
18+
- {name: Style, python: '3.10', os: ubuntu-latest, tox: style}
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python }}
24+
- run: pip install tox
25+
- name: Run app tox tests
26+
run: |
27+
tox -e ${{ matrix.tox }}

tox.ini

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
[tox]
2-
isolated_build = True
3-
envlist = py, black, interrogate, mypy
2+
isolated_build = true
3+
envlist = py, style
44

55

66
[testenv]
77
deps =
88
pytest
99
pytest-cov
1010
commands =
11-
python -m pytest --cov=codetiming --cov-fail-under=100 --cov-report=term-missing
11+
{envpython} -m pytest --cov=codetiming --cov-fail-under=100 --cov-report=term-missing
1212

1313

14-
[testenv:black]
15-
deps = black
16-
commands = python -m black --check codetiming/
17-
18-
19-
[testenv:interrogate]
20-
deps = interrogate
14+
[testenv:style]
2115
skip_install = true
22-
commands =
23-
interrogate --config=pyproject.toml
24-
25-
26-
[testenv:mypy]
27-
deps = mypy
28-
commands = python -m mypy --strict codetiming/
16+
deps =
17+
black
18+
flake8
19+
interrogate
20+
isort
21+
mypy
22+
commands =
23+
{envpython} -m black --check --quiet codetiming/
24+
{envpython} -m flake8 codetiming/
25+
{envpython} -m interrogate --quiet --config=pyproject.toml
26+
{envpython} -m isort --check codetiming/
27+
{envpython} -m mypy --strict codetiming/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy