Skip to content

Commit

Permalink
Merge pull request #2 from ArneBinder/test_workflow
Browse files Browse the repository at this point in the history
add test GitHub workflow
  • Loading branch information
ArneBinder authored Aug 3, 2022
2 parents 282391d + 31b1f80 commit 56e938b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: Tests

on:
push:
branches: [main]
pull_request:
branches: [main, "release/*"]

jobs:
tests:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9"]

timeout-minutes: 10

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "setup.py"
- run: |
python -m pip install --upgrade pip
pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
pip install -e ".[tests]"
- name: Run tests with coverage
run: |
pytest -k "not slow" --cov --cov-report term-missing

0 comments on commit 56e938b

Please sign in to comment.