From c6fe4717a6dbb401af2168f57db99bf6ed02be8b Mon Sep 17 00:00:00 2001 From: Asthestarsfalll <1186454801@qq.com> Date: Mon, 5 Feb 2024 22:06:44 +0800 Subject: [PATCH] add --- .github/workflows/tests.yaml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e0e0cf5..30d58dd 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -25,15 +25,6 @@ jobs: with: version: 1.5.1 - - name: Cache Poetry virtualenv - uses: actions/cache@v1 - id: cache - with: - path: ~/.virtualenvs - key: poetry-${{ hashFiles('**/poetry.lock') }} - restore-keys: | - poetry-${{ hashFiles('**/poetry.lock') }} - - name: Install Dependencies run: poetry install --with dev if: steps.cache.outputs.cache-hit != 'true' @@ -41,5 +32,10 @@ jobs: - name: Test with pytest run: | cd ./tests - poetry python init.py + poetry run python init.py poetry run pytest --cov . + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}