Skip to content

Commit

Permalink
fix upload
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoopmans committed Aug 10, 2024
1 parent 121bcf5 commit 2bf85af
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ jobs:
container:
image: python:2.7.18-buster
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install -r requirements.txt && \
Expand All @@ -39,7 +35,7 @@ jobs:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand All @@ -64,7 +60,7 @@ jobs:
- Test
- Test-python-27
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -73,18 +69,20 @@ jobs:
run: |
python -m pip install coverage codecov
- name: Download coverage artifacts
run: |
for version in 2.7 3.7 3.8 3.9 3.10 3.11 3.12; do
echo "Downloading coverage for Python $version"
actions/download-artifact@v4 --name coverage-$version --path ./coverage/$version
done
uses: actions/download-artifact@v4
with:
pattern: coverage-*
merge-multiple: true
- name: Combine coverage reports
run: |
coverage combine ./coverage
ls -lashR coverage.xml
coverage combine
coverage report
coverage xml
coverage html --skip-covered --skip-empty
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
mypy:
Expand Down

0 comments on commit 2bf85af

Please sign in to comment.