Skip to content

Commit

Permalink
Create pytest GitHub Action.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 368416101
  • Loading branch information
tomhennigan authored and copybara-github committed Apr 14, 2021
1 parent ef72b61 commit 78e3174
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: pytest

on: [pull_request]

jobs:
test-ubuntu:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"

strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-jax.txt
pip install -r requirements-test.txt
pip install .
- name: Test with pytest
run: |
pip install pytest
pytest jmp
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
numpy>=1.19.5
dataclasses>=0.7 ; python_version<'3.7'

0 comments on commit 78e3174

Please sign in to comment.