Skip to content

Commit

Permalink
remove name .github/workflows/tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xrsrke committed Oct 5, 2023
1 parent 96b1141 commit 00ad7e5
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
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
pip install -e .
pip3 install torch torchvision torchaudio
pip install pytest
pip install pytest-cov
- name: Print PyTorch and CUDA info
run: |
python -c "import torch; print(torch.__version__)"
python -c "import torch; print(torch.cuda.is_available())"
- name: Run tests
run: pytest -vv --cov=pipegoose tests/

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 00ad7e5

Please sign in to comment.