Skip to content

Commit 93ff5d7

Browse files
authored
Merge pull request hardbyte#870 from hardbyte/fix-gh-actions
Use tox for testing with github actions
2 parents 63c60af + 6eb7d5d commit 93ff5d7

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/build.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ jobs:
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
21-
pip install .[test]
22-
- name: Test with pytest
21+
pip install tox
22+
pip install -r requirements-lint.txt
23+
- name: Test with pytest via tox
2324
run: |
24-
pytest
25+
tox -e gh
26+
- name: Code Format Check with Black
27+
run: |
28+
black --check --verbose .

tox.ini

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ commands =
1515

1616
recreate = True
1717

18+
[testenv:gh]
19+
passenv =
20+
CI
21+
PYTHONPATH
22+
1823
[testenv:travis]
1924
passenv =
2025
CI

0 commit comments

Comments
 (0)