Skip to content

Commit 488a934

Browse files
committedJan 31, 2024
restore cdm_reader_mapper
0 parents  commit 488a934

File tree

1,620 files changed

+120427
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,620 files changed

+120427
-0
lines changed
 

‎.flake8

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[flake8]
2+
exclude =
3+
.git,
4+
docs,
5+
build,
6+
.eggs,
7+
tests
8+
ignore =
9+
AZ100,
10+
AZ200,
11+
AZ300,
12+
C,
13+
D,
14+
E,
15+
F,
16+
W503
17+
rst-directives =
18+
bibliography,
19+
autolink-skip
20+
rst-roles =
21+
doc,
22+
mod,
23+
py:attr,
24+
py:attribute,
25+
py:class,
26+
py:const,
27+
py:data,
28+
py:func,
29+
py:indicator,
30+
py:meth,
31+
py:mod,
32+
py:obj,
33+
py:ref,
34+
ref,
35+
cite:cts,
36+
cite:p,
37+
cite:t,
38+
cite:ts

‎.github/workflows/ci.yml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: cdm Testing Suite
2+
on:
3+
push:
4+
branches:
5+
- "*"
6+
pull_request:
7+
branches:
8+
- "*"
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
name: py${{ matrix.python-version }}
17+
runs-on: ${{ matrix.os }}
18+
defaults:
19+
run:
20+
shell: bash -l {0}
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
os: ["ubuntu-latest"]
25+
# Bookend python versions
26+
python-version: ["3.9", "3.10", "3.11"]
27+
steps:
28+
- uses: actions/checkout@v3
29+
with:
30+
fetch-depth: 0 # Fetch all history for all branches and tags.
31+
- name: Set environment variables
32+
run: |
33+
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
34+
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
35+
36+
- name: Create conda environment
37+
uses: mamba-org/provision-with-micromamba@main
38+
with:
39+
cache-downloads: true
40+
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
41+
micromamba-version: 'latest'
42+
environment-file: ci/requirements/environment.yml
43+
extra-specs: |
44+
python=${{ matrix.python-version }}
45+
46+
- name: Install cdm reader mapper toolbox
47+
run: |
48+
python -m pip install --no-deps -e .
49+
50+
- name: Version info
51+
run: |
52+
conda info -a
53+
conda list
54+
55+
- name: Import cdm reader mapper toolbox
56+
run: |
57+
python -c "import cdm_reader_mapper"
58+
59+
- name: Run tests
60+
timeout-minutes: 5
61+
run: python -u -m pytest
62+
--cov=cdm_reader_mapper
63+
--cov-report=xml
64+
--junitxml=test-results/${{ runner.os }}-${{ matrix.python-version }}.xml
65+
66+
- name: Upload code coverage to Codecov
67+
uses: codecov/codecov-action@v3
68+
with:
69+
file: ./coverage.xml
70+
flags: unittests
71+
env_vars: RUNNER_OS,PYTHON_VERSION
72+
name: codecov-umbrella
73+
fail_ci_if_error: false

0 commit comments

Comments
 (0)
Please sign in to comment.