From 277fe5e1461a2df70ddf2aaedcaa53e2536f70d1 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 16 Apr 2023 21:30:05 +0200 Subject: [PATCH] Restore the CI environment This is a bulk change that tries to bring up the CI environment back to health. It does: - switch to newer Python versions (3.7+ only) - switch to current codecov action - drops no-longer-supported codecov-results-as-artifact storage - install dependencies for, and build documentation (as validation step during the build, not to use the result) Hopefully this will allow again CI to run correctly. --- .github/workflows/ci.yml | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ca794f..19ea862 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,20 +20,16 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-22.04] python-version: - - '3.5' - - '3.6' - '3.7' - '3.8' - '3.9' - - '3.10-dev' - - 'pypy-3.6' + - '3.10' + - '3.11' - 'pypy-3.7' - include: - - os: ubuntu-18.04 - python-version: '3.4' - installTyping: ${{ true }} + - 'pypy-3.8' + - 'pypy-3.9' fail-fast: true steps: @@ -59,13 +55,10 @@ jobs: - name: Install dependencies run: | pip install pytest - pip install codecov + pip install sphinx + pip install recommonmark sudo apt-get install -yy libacl1-dev - - name: Install typing for old Python - run: pip install typing - if: matrix.installTyping - - name: Build the code run: python ./setup.py build_ext -i @@ -82,7 +75,7 @@ jobs: run: python -m pytest tests - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: #files: ./coverage1.xml,./coverage2.xml #directory: ./coverage/reports/ @@ -90,11 +83,8 @@ jobs: #env_vars: OS,PYTHON name: codecov-python-${{ matrix.python-version }} #fail_ci_if_error: true - path_to_write_report: ./codecov-report.txt #verbose: true + gcov: true - - name: Archive code coverage result - uses: 'actions/upload-artifact@v2' - with: - name: code-coverage-${{ matrix.os }}-${{ matrix.python-version }} - path: codecov-report.txt + - name: Build documentation + run: make doc -- 2.39.5