Skip to content

Commit

Permalink
Add GH action to run pytest (#4)
Browse files Browse the repository at this point in the history
Signed-off-by: Connor Tann <[email protected]>
  • Loading branch information
connortann authored Mar 6, 2024
1 parent 683fd5c commit 12964ec
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: tests

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
run_tests:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest numpy pandas scipy torch
pip install .
- name: Install project
run: pip install .
- name: Test with pytest
run: pytest

0 comments on commit 12964ec

Please sign in to comment.