-
Notifications
You must be signed in to change notification settings - Fork 59
39 lines (33 loc) · 1.11 KB
/
cc-plugin-sgrid-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: SGRID Plugin Tests
on:
pull_request:
push:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v2
with:
environment-name: TEST
init-shell: bash
create-args: >-
python=3 pip
--file requirements.txt
--file test_requirements.txt
--channel conda-forge
- name: Install compliance-checker
shell: bash -l {0}
run: |
pip install git+https://github.com/pelson/pyudunits2.git@864e339d622656d060d910381510f9bfe7b17aab
python -m pip install -e . --no-deps --force-reinstall
- name: cc-plugin-sgrid tests
shell: bash -l {0}
run: >
git clone https://github.com/ioos/cc-plugin-sgrid.git
&& cd cc-plugin-sgrid
&& micromamba install --file requirements.txt --file requirements-dev.txt --channel conda-forge
&& micromamba remove compliance-checker --no-prune-deps --force
&& python -m pip install -e . --no-deps --force-reinstall
&& python -m pytest -s -rxs -v cc_plugin_sgrid