Update pythonpackage.yml
This commit is contained in:
parent
d9c7e732a6
commit
898b588314
|
@ -13,20 +13,26 @@ jobs:
|
|||
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
|
||||
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: 'pip'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-test.txt
|
||||
|
||||
- name: Test with unittest
|
||||
run: |
|
||||
coverage run -m unittest
|
||||
coverage xml -o ./coverage.xml
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue