From 47deb0058c12261cf97ffca500a60b7c1ea68430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zeyan=20Li=20=E6=9D=8E=E5=88=99=E8=A8=80?= Date: Thu, 7 Mar 2024 15:20:21 +0800 Subject: [PATCH] ci: update CI Configurations --- .github/workflows/pythonpackage.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index d1238ce..b58b263 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -24,12 +24,6 @@ jobs: uses: abatilo/actions-poetry@v2 with: poetry-version: ${{ matrix.poetry-version }} - - name: Cache pip - uses: actions/cache@v2 - with: - path: ~/.cache/pip # This path is specific to Ubuntu - # Look to see if there is a cache hit for the corresponding requirements file - key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }} - name: Install dependencies run: | poetry config virtualenvs.create false @@ -37,11 +31,11 @@ jobs: - name: Test with pytest run: | PYTHONPATH=$(realpath .) coverage run -m pytest tests - - name: Genrate Coverage Report - run: | - PYTHONPATH=$(realpath .) coverage report - - name: Coveralls - env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + - name: Generate Coverage Report run: | - coveralls + PYTHONPATH=$(realpath .) coverage xml coverage.xml + - name: Get Cover + uses: orgoro/coverage@v3.1 + with: + coverageFile: coverage.xml + token: ${{ secrets.GITHUB_TOKEN }}