Skip to content

Commit

Permalink
Add new job to run tests with latest jax version
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-T-McCann committed Dec 13, 2021
1 parent e6c0b7c commit ea3ba34
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This is a basic workflow to help you get started with Actions
# Install scico requirements and run pytest

name: test

Expand All @@ -13,9 +13,7 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "pytest"
pytest:
# The type of runner that the job will run on
runs-on: ubuntu-latest
Expand Down Expand Up @@ -49,3 +47,29 @@ jobs:
flags: unittests
name: codecov-umbrella
verbose: true

pytest-latest-jax:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Python 3
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get install -y libopenblas-dev
pip install pytest-cov
pip install -r requirements.txt
pip install --upgrade "jax[cpu]"
pip install -r dev_requirements.txt
pip install -e .
- name: Run tests with pytest
run: pytest

0 comments on commit ea3ba34

Please sign in to comment.