Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# See https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/keeping-your-actions-up-to-date-with-dependabot

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
labels:
- "Bot"
8 changes: 3 additions & 5 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ jobs:

- name: Create environment
shell: bash -l {0}
run: |
run: >
micromamba create --name TEST python=3 numpy --file requirements-dev.txt --channel conda-forge
micromamba activate TEST
pip install -e . --no-deps --force-reinstall
conda info --all
conda list
&& micromamba activate TEST
&& pip install -e . --no-deps --force-reinstall

- name: Build documentation
shell: bash -l {0}
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/tarball-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,20 @@ jobs:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/provision-with-micromamba@v13
with:
environment-file: false

- name: Create environment
shell: bash -l {0}
run: |
run: >
micromamba create --name TEST python=3 python-build numpy --file requirements-dev.txt --channel conda-forge
micromamba activate TEST
micromamba info --all
micromamba list
&& micromamba activate TEST

- name: Tarball
shell: bash -l {0}
run: |
run: >
micromamba activate TEST
python -m build --skip-dependency-check --sdist --wheel .
check-manifest --verbose
twine check dist/*
&& python -m build --skip-dependency-check --sdist --wheel .
&& check-manifest --verbose
&& twine check dist/*
26 changes: 12 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,39 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
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.19", "1.22"]
numpy-version: ["1.21", "1.23"]
exclude:
- python-version: "3.10"
numpy-version: "1.19"
- python-version: "3.11"
numpy-version: "1.21"
fail-fast: false

steps:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/provision-with-micromamba@v13
with:
environment-file: false

- name: Python ${{ matrix.python-version }} numpy ${{ matrix.numpy-version }}
shell: bash -l {0}
run: |
run: >
micromamba create --name TEST python=${{ matrix.python-version }} python-build numpy=${{ matrix.numpy-version }} --file requirements-dev.txt --channel conda-forge
micromamba activate TEST
python -m pip install -e . --no-deps --no-build-isolation --force-reinstall
&& micromamba activate TEST
&& python -m pip install -e . --no-deps --no-build-isolation --force-reinstall

- name: Debug
shell: bash -l {0}
run: |
run: >
micromamba activate TEST
micromamba info --all
micromamba list
python -c "import numpy; print(f'Running numpy {numpy.__version__}')"
&& python -c "import numpy; print(f'Running numpy {numpy.__version__}')"

- name: Tests
shell: bash -l {0}
run: |
run: >
micromamba activate TEST
pytest -s -rxs -v gsw/tests
&& pytest -s -rxs -v gsw/tests
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ exclude *.yaml
exclude *.enc
exclude .gitignore
exclude .isort.cfg
exclude .zenodo.json