Skip to content

Commit

Permalink
don't use dev releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Oct 4, 2024
1 parent 08ca21d commit 1910fed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/test_code_generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ jobs:
environment-name: TEST
init-shell: bash
create-args: >-
python=3 pip
python=3
python-build
numpy
--file requirements-dev.txt
--channel conda-forge
- name: Install nightly version of numpy
run: |
python -m pip install --pre --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --extra-index-url https://pypi.org/simple numpy scipy pandas -U
- name: Test Code Generation
run: >
git clone https://github.com/TEOS-10/GSW-C.git ../GSW-C
Expand Down
20 changes: 2 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [windows-latest, ubuntu-latest, macos-latest]
experimental: [false]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
os: [ windows-latest, ubuntu-latest, macos-latest ]
# Oldest one based on NEP-29 and latest one.
# See https://numpy.org/neps/nep-0029-deprecation_policy.html
numpy-version: ["1.23", "1.26"]
exclude:
- python-version: "3.12"
numpy-version: "1.23"
include:
- python-version: "3.12"
os: "ubuntu-latest"
experimental: true
fail-fast: false
defaults:
run:
Expand All @@ -39,18 +34,7 @@ jobs:
create-args: >-
python=${{ matrix.python-version }} python-build numpy=${{ matrix.numpy-version }} --file requirements-dev.txt --channel conda-forge
- name: Install unstable dependencies
if: matrix.experimental == true
run: |
python -m pip install \
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/ \
--trusted-host pypi.anaconda.org \
--no-deps --pre --upgrade \
numpy scipy pandas;
python -m pip install -v -e . --no-deps --no-build-isolation --force-reinstall
- name: Install gsw
if: matrix.experimental != true
run: |
python -m pip install -e . --no-deps --force-reinstall
Expand Down

0 comments on commit 1910fed

Please sign in to comment.