Skip to content

Commit

Permalink
Merge pull request #11 from paganpasta/paganpasta-patch-1
Browse files Browse the repository at this point in the history
Created run_test workflow
  • Loading branch information
paganpasta authored Aug 2, 2022
2 parents 4b9060a + 9a06dd9 commit 684b465
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run tests

on:
pull_request:

jobs:
run-test:
strategy:
matrix:
python-version: [ 3.7, 3.8, 3.9 ]
os: [ ubuntu-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest wheel equinox optax
- name: Checks with pre-commit
uses: pre-commit/[email protected]

- name: Test with pytest
run: |
python -m pip install .
python -m pytest

0 comments on commit 684b465

Please sign in to comment.