From 790e7993debc0f296a6cac1d20956d907f5c727a Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 30 Oct 2024 13:00:12 +0100 Subject: [PATCH 1/3] use Python 3.13 in the tests --- .github/workflows/deploy-docs.yml | 5 +++-- .github/workflows/tests.yml | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 7646d03..d62deaa 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -12,6 +12,9 @@ on: jobs: build-docs: runs-on: ubuntu-latest + defaults: + run: + shell: bash -l {0} steps: - name: checkout @@ -31,12 +34,10 @@ jobs: --channel conda-forge - name: Install ioos_qc - shell: bash -l {0} run: | python -m pip install -e . --no-deps --force-reinstall - name: Build documentation - shell: bash -l {0} run: > set -e pushd docs diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f070cc0..4ec7001 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Default-Tests +name: Full Tests on: pull_request: @@ -10,8 +10,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] - os: [ubuntu-latest] + python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] + os: [ windows-latest, ubuntu-latest, macos-latest ] numba: [true, false] fail-fast: false defaults: @@ -44,4 +44,4 @@ jobs: - name: Tests run: | - python -m pytest --disable-warnings + python -m pytest --disable-warnings --pyargs ioos_qc From ff05326ce80b62eaa46de6cd425ccb3f30fc0bcc Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 30 Oct 2024 13:55:37 +0100 Subject: [PATCH 2/3] test are outside of the module --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4ec7001..872d268 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,4 +44,4 @@ jobs: - name: Tests run: | - python -m pytest --disable-warnings --pyargs ioos_qc + python -m pytest --disable-warnings \ No newline at end of file From 5367ffb27413a09e785aa0a32d8945b185238dc4 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 30 Oct 2024 14:18:46 +0100 Subject: [PATCH 3/3] numba isn't out on Python 3.13 --- .github/workflows/tests.yml | 9 ++++++--- requirements-dev.txt | 1 - 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 872d268..c4ddd88 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,6 +13,10 @@ jobs: python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] os: [ windows-latest, ubuntu-latest, macos-latest ] numba: [true, false] + # Numba is not out on Python 3.13 yet. + exclude: + - python-version: "3.13" + numba: true fail-fast: false defaults: run: @@ -37,10 +41,9 @@ jobs: python -m pip install -e . --no-deps --force-reinstall - name: numba - # numba is listed in requirements.txt so we need to remove it below. - if: ${{ ! matrix.numba }} + if: ${{ matrix.numba }} run: | - micromamba remove numba + micromamba install numba - name: Tests run: | diff --git a/requirements-dev.txt b/requirements-dev.txt index bb02da3..75e9597 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,5 +2,4 @@ bokeh dask erddapy nco -numba pytest