Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Asthestarsfalll committed Feb 5, 2024
1 parent f460e7f commit c6fe471
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,17 @@ 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'

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

0 comments on commit c6fe471

Please sign in to comment.