File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 - name : Python 3.8 with all optional dependencies
3131 os : ubuntu-latest
3232 python : 3.8
33- toxenv : py38
33+ toxenv : py38-cov
3434
3535 - name : OS X - Python 3.8 with all optional dependencies
3636 os : macos-latest
5858 - name : Test with tox
5959 run : |
6060 tox -e ${{ matrix.toxenv }}
61- # This is an example of how to upload coverage to codecov
62- # - name: Upload coverage to codecov
63- # if: "contains(matrix.toxenv, '-cov')"
64- # uses: codecov/codecov-action@v1
65- # with:
66- # file: ./coverage.xml
61+ - name : Upload coverage to codecov
62+ if : " contains(matrix.toxenv, '-cov')"
63+ uses : codecov/codecov-action@v1
64+ with :
65+ file : ./coverage.xml
Original file line number Diff line number Diff line change 11[tox]
2- envlist = py38, flake8
2+ envlist =
3+ py38{,-cov}
4+ flake8
35
46[testenv]
57setenv =
1113; -r{toxinidir}/requirements.txt
1214commands =
1315 pip install -U pip
14- pytest --basetemp ={envtmpdir}
16+ !cov: pytest --basetemp ={envtmpdir}
17+ cov: coverage run --source dash_component_template -m pytest
18+ cov: coverage xml -o {toxinidir}/coverage.xml
1519
1620allowlist_externals = make
1721 /bin/bash
You can’t perform that action at this time.
0 commit comments