Skip to content

Commit

Permalink
Add Test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceyron committed Oct 18, 2024
1 parent 1f3e733 commit a9a772a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run tests

on: [push, pull_request]

permissions:
contents: read

jobs:
run-test:
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
os: [ ubuntu-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
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
python -m pip install -r ./tests/requirements.txt
- name: Test with pytest
run: |
python -m pip install .
python -m pytest tests/
2 changes: 2 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jaxlib
pytest

0 comments on commit a9a772a

Please sign in to comment.