Skip to content

Commit

Permalink
remove micromamba
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Nov 7, 2024
1 parent 0139aa2 commit 6b67970
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,31 @@ on:
push:
branches: [main]

defaults:
run:
shell: bash

jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
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"
fail-fast: false
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4

- name: Setup Micromamba Python ${{ matrix.python-version }} numpy ${{ matrix.numpy-version }}
uses: mamba-org/setup-micromamba@v2
- name: Set up Python
uses: actions/setup-python@v5
with:
environment-name: TEST
init-shell: bash
create-args: >-
python=${{ matrix.python-version }} python-build numpy=${{ matrix.numpy-version }} --file requirements-dev.txt --channel conda-forge
python-version: ${{ matrix.python-version }}

- name: Install gsw
run: |
python -m pip install -e . --no-deps --force-reinstall
run: >
python -m pip install -r requirements-dev.txt
&& python -m pip install -e .
- name: Tests
run: |
Expand Down

0 comments on commit 6b67970

Please sign in to comment.