Skip to content

Commit

Permalink
provision-with-micromamba is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed May 26, 2023
1 parent 5019b2c commit 826029b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 34 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,32 @@ jobs:
with:
fetch-depth: 0

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
- name: Setup Micromamba ${{ matrix.python-version }}
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false

- name: Build environment
environment-name: TEST
init-shell: bash
create-args: >-
python=3 pip
--file requirements.txt
--file requirements-dev.txt
--channel conda-forge
- name: Install ioos_qc
shell: bash -l {0}
run: |
micromamba create --name TEST python=3 --file requirements.txt --file docs/requirements.txt --channel conda-forge
micromamba activate TEST
python -m pip install -e . --no-deps --force-reinstall
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(python setup.py --version)

- name: Build documentation
shell: bash -l {0}
run: |
run: >
set -e
micromamba activate TEST
pushd docs
make clean html linkcheck
popd
- name: Deploy
if: github.event_name == 'release' || github.event_name == 'push'
if: success() && github.event_name == 'release'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Install build tools
run: |
python -m pip install --upgrade pip wheel setuptools setuptools_scm build twine
python -m pip install --upgrade pip build twine
shell: bash

- name: Build binary wheel
Expand Down
33 changes: 14 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,38 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest]
numba: [true, false]
fail-fast: false

steps:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
- name: Setup Micromamba ${{ matrix.python-version }}
uses: mamba-org/setup-micromamba@v1
with:
environment-file: false

- name: Python ${{ matrix.python-version }}
environment-name: TEST
init-shell: bash
create-args: >-
python=3 pip
--file requirements.txt
--file requirements-dev.txt
--channel conda-forge
- name: Install ioos_qc
shell: bash -l {0}
run: |
micromamba create --name TEST python=${{ matrix.python-version }} --file requirements.txt --file tests/requirements.txt --channel conda-forge
micromamba activate TEST
pip install -e . --no-deps --force-reinstall
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 }}
shell: bash -l {0}
run: |
micromamba activate TEST
micromamba remove numba
- name: Debug conda
shell: bash -l {0}
run: |
micromamba activate TEST
micromamba info --all
micromamba list
- name: Tests
shell: bash -l {0}
run: |
micromamba activate TEST
python -m pytest --disable-warnings
python -m pytest --disable-warnings

0 comments on commit 826029b

Please sign in to comment.