Skip to content

Commit

Permalink
Add GH action to run pytest
Browse files Browse the repository at this point in the history
Signed-off-by: Connor Tann <71127464+connortann@users.noreply.github.com>
  • Loading branch information
connortann committed Mar 6, 2024
1 parent 683fd5c commit b18dc78
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: tests

on: [push, pull_request]

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 b18dc78

Please sign in to comment.