diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index c12cbd1..8c57070 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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 && \ @@ -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: @@ -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: @@ -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: