Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,17 @@ jobs:
allow-prereleases: true
cache: pip
cache-dependency-path: |
.github/workflows/ci.yml
dev-requirements.txt
requirements.txt

- name: Install dependencies
run: |
python3 -m pip install -U -r dev-requirements.txt
python3 -m pip install -U coverage tox

- name: Tests
run: |
python3 -m coverage run -m pytest
python3 -m coverage report
python3 -m coverage xml
tox -e py

- name: Upload coverage
uses: codecov/codecov-action@v3
Expand Down
19 changes: 19 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[tox]
requires =
tox>=4.2
env_list =
py{312, 311, 310, 39, 38}

[testenv]
pass_env =
FORCE_COLOR
commands_pre =
{envpython} -m pip install -U -r dev-requirements.txt
commands =
{envpython} -m pytest \
--cov blurb_it \
--cov tests \
--cov-report html \
--cov-report term \
--cov-report xml \
{posargs}