Skip to content

Commit

Permalink
add GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
gau-nernst committed Jul 7, 2023
1 parent 5925030 commit e045d4d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test
on:
push:
paths-ignore:
- README.md
- .gitignore

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pytorch-version: ["1.13", "2.0"]
python-version: ["3.10"]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install torch=${{ matrix.pytorch-version }} torchvision --extra-index-url https://download.pytorch.org/whl/cpu
pip install pytest
- name: Run tests
run: python -m pytest -v

0 comments on commit e045d4d

Please sign in to comment.