Skip to content

Commit

Permalink
[Refactor] Add print test duration in pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
xrsrke committed Oct 25, 2023
1 parent bacd622 commit 905e3ea
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Tests

on:
push:
Expand All @@ -7,8 +7,7 @@ on:
branches: [ main ]

jobs:
build:

tests:
runs-on: ubuntu-latest

steps:
Expand All @@ -19,19 +18,6 @@ jobs:
with:
python-version: 3.9

# - name: Install Poetry
# run: |
# curl -sSL https://install.python-poetry.org | python3 -

# - name: Install dependencies
# run: poetry install

# - name: Install torch cuda
# run: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

# - name: Run tests
# run: poetry run pytest

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -46,7 +32,7 @@ jobs:
python -c "import torch; print(torch.cuda.is_available())"
- name: Run tests
run: pytest -vv --cov=pipegoose tests/
run: pytest --color=yes --durations=0 --cov=pipegoose --verbose tests/

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 905e3ea

Please sign in to comment.