Skip to content

Commit

Permalink
Fix GitHub Actions Execution (#23)
Browse files Browse the repository at this point in the history
- Remove old Python versions (unsupported by JAX)
- Use current action versions
- Activate CI execution on PRs
  • Loading branch information
fthaler authored Jun 24, 2024
1 parent d959d6b commit 0ada520
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Test

on: [push]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
JAX_ENABLE_X64: 1
Expand All @@ -11,12 +15,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
pyversion: ["3.7", "3.8", "3.9", "3.10"]
pyversion: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.pyversion }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyversion }}
- name: Install
Expand All @@ -28,7 +32,7 @@ jobs:
pip install -r requirements-dev.txt
- name: Install Optional Dependencies
run: |
pip install numba jax jaxlib
pip install numba jax
- name: Test
run: |
pytest

0 comments on commit 0ada520

Please sign in to comment.