Fix Windows CI.

This commit is contained in:
aouinizied 2022-04-26 16:18:37 +02:00
parent 808b34212c
commit 429503dcca

View file

@ -72,24 +72,9 @@ jobs:
retention-days: 1
- name: Test
# On other versions then 3.9, we test only. (without coverage generation)
# Disable 3.6 and 3.7
if: startsWith(matrix.os, 'windows') && !startsWith(matrix.python-version, '3.9') && !startsWith(matrix.python-version, '3.7') && !startsWith(matrix.python-version, '3.6')
run: |
python tests.py
- name: Test and generate coverage report
# On version 3.9, we test and generate coverage report.
if: startsWith(matrix.python-version, '3.9')
run: |
python -m pip install coverage
python -m coverage run tests.py
python -m coverage combine
- name: Upload coverage to Codecov
if: startsWith(matrix.python-version, '3.9')
uses: codecov/codecov-action@v1
- name: Publish on Pypi
if: startsWith(github.ref, 'refs/tags/')
env: