Skip to content

Commit

Permalink
Created run_test workflow
Browse files Browse the repository at this point in the history
- Running tests on added requests
  • Loading branch information
paganpasta authored Aug 2, 2022
1 parent 3966211 commit b0c1121
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 b0c1121

Please sign in to comment.