Skip to content

Commit

Permalink
pybop-team#123 configure PYBAMM_VERSION env var
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Feb 12, 2024
1 parent bcc7983 commit 23b7be2
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/scheduled_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
schedule:
- cron: '0 9 * * *'

# Check noxfile.py for associated environment variables
env:
PYBOP_SCHEDULED: 1

jobs:
# Dynamically create a matrix of OS, Python, and PyBaMM versions
create_pybamm_matrix:
Expand Down Expand Up @@ -37,20 +41,25 @@ jobs:
strategy:
fail-fast: false
matrix: ${{fromJson(needs.create_pybamm_matrix.outputs.pybop_matrix)}}
env:
PYBAMM_VERSION: ${{ matrix.pybamm_version }}

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip nox
- name: Unit tests with nox
run: |
python -m nox -s unit
python -m nox -s notebooks
run: python -m nox -s unit

- name: Run notebooks with nox
run: python -m nox -s notebooks

# M-series Mac Mini
build-apple-mseries:
Expand Down

0 comments on commit 23b7be2

Please sign in to comment.