Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use micromamba v2 #980

Merged
merged 6 commits into from
Jan 4, 2023
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"
43 changes: 0 additions & 43 deletions .github/workflows/cc-checker-ugrid-test.yml

This file was deleted.

40 changes: 16 additions & 24 deletions .github/workflows/cc-plugin-glider-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,32 @@ name: Glider Plugin Tests
on:
pull_request:
push:
branches: [master]

jobs:
run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v14
with:
activate-conda: false
conda-channels: conda-forge
environment-file: false

- name: Python ${{ matrix.python-version }}
- name: Python
shell: bash -l {0}
run: |
conda create --name TEST python=${{ matrix.python-version }} python=3 pip --file requirements.txt --file test_requirements.txt --strict-channel-priority
source activate TEST
pip install -e . --no-deps --force-reinstall

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

- name: cc-plugin-glider tests
shell: bash -l {0}
run: |
source activate TEST
git clone https://github.com/ioos/cc-plugin-glider.git
cd cc-plugin-glider
conda install --file requirements.txt --file requirements-dev.txt ;
pytest -s -rxs -v cc_plugin_glider
run: >
micromamba activate TEST
&& git clone https://github.com/ioos/cc-plugin-glider.git
&& cd cc-plugin-glider
&& micromamba install --file requirements.txt --file requirements-dev.txt --channel conda-forge
&& pip install -e . --no-deps --force-reinstall
&& pytest -s -rxs -v cc_plugin_glider
39 changes: 15 additions & 24 deletions .github/workflows/cc-plugin-sgrid-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,31 @@ name: SGRID Plugin Tests
on:
pull_request:
push:
branches: [master]

jobs:
run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
activate-conda: false
conda-channels: conda-forge
environment-file: false

- name: Python ${{ matrix.python-version }}
- name: Python
shell: bash -l {0}
run: |
conda create --name TEST python=${{ matrix.python-version }} python=3 pip --file requirements.txt --file test_requirements.txt --strict-channel-priority
source activate TEST
pip install -e . --no-deps --force-reinstall

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

- name: cc-plugin-glider tests
shell: bash -l {0}
run: |
source activate TEST
git clone https://github.com/ioos/cc-plugin-sgrid.git
cd cc-plugin-sgrid
conda install --file requirements.txt --file requirements-dev.txt ;
pytest -s -rxs -v cc_plugin_sgrid
run: >
micromamba activate TEST
&& git clone https://github.com/ioos/cc-plugin-sgrid.git
&& cd cc-plugin-sgrid
&& pip install -e . --no-deps --force-reinstall
&& pytest -s -rxs -v cc_plugin_sgrid
34 changes: 34 additions & 0 deletions .github/workflows/cc-plugin-ugrid-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: UGRID Plugin Tests

on:
pull_request:
push:

jobs:
run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

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

- name: Python
shell: bash -l {0}
run: >
micromamba create --name TEST python=3 pip --file requirements.txt --file test_requirements.txt --channel conda-forge
&& micromamba activate TEST
&& pip install -e . --no-deps --force-reinstall

- name: cc-plugin-glider tests
shell: bash -l {0}
run: >
micromamba activate TEST
&& git clone https://github.com/ioos/cc-checker-ugrid.git
&& cd cc-checker-ugrid
&& micromamba install --file requirements.txt --file requirements-dev.txt --channel conda-forge
&& pip install -e . --no-deps --force-reinstall
&& pytest -s -rxs -v cc_plugin_ugrid
40 changes: 12 additions & 28 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,37 @@ name: Code coverage report
on:
pull_request:
push:
branches:
- master
- develop

jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]
fail-fast: false
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v14
with:
activate-conda: false
conda-channels: conda-forge
environment-file: false

- name: Python ${{ matrix.python-version }}
- name: Python
shell: bash -l {0}
run: |
conda create --name TEST python=${{ matrix.python-version }} pip --file requirements.txt --file test_requirements.txt --strict-channel-priority
source activate TEST
pip install -e . --no-deps --force-reinstall

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

- name: Run tests with coverage
shell: bash -l {0}
run: |
source activate TEST
micromamba activate TEST
pytest --cov=compliance_checker --cov-report=xml compliance_checker/tests
# pass this step even if there are individual test failures, we are
# interested in the overall level of coverage and other checks can
# report on test failures.
continue-on-error: true

- name: Upload to codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
files: coverage.xml
29 changes: 10 additions & 19 deletions .github/workflows/default-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,33 @@ name: Default Tests
on:
pull_request:
push:
branches: [master]

jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v14
with:
activate-conda: false
conda-channels: conda-forge
environment-file: false

- name: Python ${{ matrix.python-version }}
shell: bash -l {0}
run: |
conda create --name TEST python=${{ matrix.python-version }} pip --file requirements.txt --file test_requirements.txt --strict-channel-priority
source activate TEST
pip install -e . --no-deps --force-reinstall

- name: Conda Info
shell: bash -l {0}
run: |
source activate TEST
conda info --all
conda list
run: >
micromamba create --name TEST python=${{ matrix.python-version }} pip --file requirements.txt --file test_requirements.txt --channel conda-forge
&& micromamba activate TEST
&& pip install -e . --no-deps --force-reinstall

- name: Default Tests
shell: bash -l {0}
run: |
source activate TEST
micromamba activate TEST
pytest -s -rxs -v -k "not integration" compliance_checker
31 changes: 11 additions & 20 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,28 @@ name: Integration Tests
on:
pull_request:
push:
branches: [master]

jobs:
run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Conda
uses: s-weigand/setup-conda@v1
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v14
with:
activate-conda: false
conda-channels: conda-forge
environment-file: false

- name: Python ${{ matrix.python-version }}
- name: Create Environment
shell: bash -l {0}
run: |
conda create --name TEST python=${{ matrix.python-version }} python=3 pip --file requirements.txt --file test_requirements.txt --strict-channel-priority
source activate TEST
pip install -e . --no-deps --force-reinstall

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

- name: Integration Tests
shell: bash -l {0}
run: |
source activate TEST
pytest -m "integration" -s -rxs -v compliance_checker
micromamba activate TEST
pytest -m "integration" -s -rxs -v --vcr-record=none compliance_checker
Loading