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 }}