-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into qc_mapping
- Loading branch information
Showing
26 changed files
with
680 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: GLAMOD marine-processing Testing Suite | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: py${{ matrix.python-version }} | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
# Bookend python versions | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for all branches and tags. | ||
- name: Set environment variables | ||
run: | | ||
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV | ||
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV | ||
- name: Create conda environment | ||
uses: mamba-org/provision-with-micromamba@main | ||
with: | ||
cache-downloads: true | ||
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{hashFiles(env.CONDA_ENV_FILE)}}" | ||
micromamba-version: 'latest' | ||
environment-file: ci/requirements/environment.yml | ||
extra-specs: | | ||
python=${{ matrix.python-version }} | ||
- name: Install cdm reader mapper toolbox | ||
run: | | ||
python -m pip install --no-deps -e . | ||
- name: Version info | ||
run: | | ||
conda info -a | ||
conda list | ||
- name: Import marine_processing toolbox | ||
run: | | ||
python -c "import glamod_marine_processing" | ||
- name: Run tests | ||
timeout-minutes: 10 | ||
run: python -u -m pytest | ||
--cov=glamod_marine_processing | ||
--cov-report=xml | ||
--junitxml=test-results/${{ runner.os }}-${{ matrix.python-version }}.xml | ||
|
||
- name: Upload code coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: ./coverage.xml | ||
flags: unittests | ||
env_vars: RUNNER_OS,PYTHON_VERSION | ||
name: codecov-umbrella | ||
fail_ci_if_error: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: marine-processing-test | ||
|
||
channels: | ||
- conda-forge | ||
- nodefaults | ||
|
||
dependencies: | ||
# for testing | ||
- pytest | ||
- pytest-cov | ||
- pytest-env | ||
- pip: | ||
- git+https://github.com/glamod/cdm_reader_mapper | ||
- pandas-validation | ||
- Levenshtein | ||
- simplejson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 21 additions & 21 deletions
42
...ssing/obs_suite/configuration_files/release_7.0/000000/ICOADS_R3.0.2T/level2_cmd_add.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,67 @@ | ||
{ | ||
"103-792": { | ||
"year_init": 2015, | ||
"year_end": 2021, | ||
"year_init": 2022, | ||
"year_end": 2022, | ||
"exclude": false, | ||
"params_exclude": [] | ||
}, | ||
"103-793": { | ||
"year_init": 2015, | ||
"year_end": 2021, | ||
"year_init": 2022, | ||
"year_end": 2022, | ||
"exclude": false, | ||
"params_exclude": [] | ||
}, | ||
"103-794": { | ||
"year_init": 2015, | ||
"year_end": 2021, | ||
"year_init": 2022, | ||
"year_end": 2022, | ||
"exclude": false, | ||
"params_exclude": [] | ||
}, | ||
"103-795": { | ||
"year_init": 2015, | ||
"year_init": 2022, | ||
"year_end": 2022, | ||
"exclude": false, | ||
"params_exclude": [] | ||
}, | ||
"103-797": { | ||
"year_init": 2015, | ||
"year_end": 2021, | ||
"year_init": 2022, | ||
"year_end": 2022, | ||
"exclude": false, | ||
"params_exclude": [] | ||
}, | ||
"114-992": { | ||
"year_init": 2015, | ||
"year_end": 2021, | ||
"year_init": 2022, | ||
"year_end": 2022, | ||
"exclude": false, | ||
"params_exclude": [] | ||
}, | ||
"114-993": { | ||
"year_init": 2015, | ||
"year_end": 2021, | ||
"year_init": 2022, | ||
"year_end": 2022, | ||
"exclude": false, | ||
"params_exclude": [] | ||
}, | ||
"114-994": { | ||
"year_init": 2015, | ||
"year_end": 2021, | ||
"year_init": 2022, | ||
"year_end": 2022, | ||
"exclude": false, | ||
"params_exclude": [] | ||
}, | ||
"114-995": { | ||
"year_init": 2015, | ||
"year_end": 2021, | ||
"year_init": 2022, | ||
"year_end": 2022, | ||
"exclude": false, | ||
"params_exclude": [] | ||
}, | ||
"172-798": { | ||
"year_init": 2015, | ||
"year_end": 2021, | ||
"year_init": 2022, | ||
"year_end": 2022, | ||
"exclude": false, | ||
"params_exclude": [] | ||
}, | ||
"params_exclude": [ | ||
"observations-wbt" | ||
], | ||
"year_init": 2015, | ||
"year_end": 2021 | ||
"year_init": 2022, | ||
"year_end": 2022 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.