From 7b09ebe817ec9bc214d25a5a3ad7234ffa5af02f Mon Sep 17 00:00:00 2001 From: Rory Conlin Date: Wed, 31 Jan 2024 20:47:52 -0500 Subject: [PATCH 1/3] Bump gh action versions --- .github/workflows/black.yml | 4 ++-- .github/workflows/linting.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/unittest.yml | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index eae7c48..32aa893 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -7,9 +7,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install dependencies diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index a8ae7a7..8a50f50 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -7,9 +7,9 @@ jobs: runs-on: ubuntu-latest name: Linting steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5328306..eace28b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,9 +14,9 @@ jobs: permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install dependencies diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index ae9eb3f..e8349d0 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -23,12 +23,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies From 37292353a2e7b607c68e2deab3bbac53fb7cc2c6 Mon Sep 17 00:00:00 2001 From: Rory Conlin Date: Wed, 31 Jan 2024 20:48:05 -0500 Subject: [PATCH 2/3] Bump jax version requirements --- requirements-dev.txt | 2 ++ requirements.txt | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 5c31929..daebeb8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,8 @@ # standard install requirements -r ./requirements.txt +jax[cpu] >= 0.3.2, <= 0.5.0 + # building the docs sphinx > 3.0.0 sphinx_copybutton diff --git a/requirements.txt b/requirements.txt index 042c41e..5842a7e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ equinox -jax[cpu] >= 0.3.2, <= 0.4.20 -numpy >= 1.20.0, < 1.25.0 -scipy >= 1.5.0, < 1.11.0 +jax >= 0.3.2, <= 0.5.0 +numpy >= 1.20.0, < 2.0 +scipy >= 1.5.0, < 2.0 From 9f68ffe718f82c75bfa2b272b37a769fdecf0fe8 Mon Sep 17 00:00:00 2001 From: Rory Conlin Date: Wed, 31 Jan 2024 20:48:20 -0500 Subject: [PATCH 3/3] Add scheduled workflow to test for newer versions --- .github/workflows/scheduled.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/scheduled.yml diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml new file mode 100644 index 0000000..9a0fd4f --- /dev/null +++ b/.github/workflows/scheduled.yml @@ -0,0 +1,38 @@ +name: Weekly tests + +on: + schedule: + - cron: '17 9 * * 1' + workflow_dispatch: + +jobs: + unit_tests: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements-dev.txt + - name: Test with pytest + run: | + pwd + lscpu + python -m pytest -v --durations=0 --cov-report xml:cov.xml --cov-config=setup.cfg --cov=interpax/ --db ./prof.db + - name: save coverage file and plot comparison results + if: always() + uses: actions/upload-artifact@v3 + with: + name: unit_test_artifact + path: | + ./cov.xml + ./prof.db