Skip to content

Commit

Permalink
Stop using tox for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jtc42 committed Jun 15, 2020
1 parent 49e2f82 commit 7fbd93f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ jobs:
poetry config virtualenvs.in-project false
poetry config virtualenvs.path ~/.virtualenvs
- name: Install Tox
run: pip install tox
- name: Code Quality
run: poetry run black . --check
continue-on-error: true

- name: Run Tox
run: tox -e py # Run tox using the version of Python in `PATH`
- name: Test with pytest
run: poetry run pytest --cov-report term-missing --cov-report=xml --cov=labthings ./tests

publish:
runs-on: ubuntu-latest
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ jobs:
poetry config virtualenvs.in-project false
poetry config virtualenvs.path ~/.virtualenvs
- name: Install Tox
run: pip install tox
- name: Code Quality
run: poetry run black . --check
continue-on-error: true

- name: Run Tox
run: tox -e py # Run tox using the version of Python in `PATH`
- name: Test with pytest
run: poetry run pytest --cov-report term-missing --cov-report=xml --cov=labthings ./tests

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
10 changes: 0 additions & 10 deletions tox.ini

This file was deleted.

0 comments on commit 7fbd93f

Please sign in to comment.