-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
134 additions
and
137 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 |
---|---|---|
|
@@ -27,63 +27,22 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.8", "3.11"] | ||
python-version: ["3.9", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch all history for all branches and tags. | ||
- name: Set environment variables | ||
run: | | ||
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV | ||
- name: Set up conda environment | ||
uses: mamba-org/provision-with-micromamba@v15 | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: ci/environment.yml | ||
environment-name: cf_xarray_test | ||
cache-env: true | ||
extra-specs: | | ||
python="${{ matrix.python-version }}" | ||
- name: Install cf_xarray | ||
run: | | ||
python -m pip install --no-deps -e . | ||
- name: Run Tests | ||
run: | | ||
pytest -n auto --cov=./ --cov-report=xml | ||
- name: Upload code coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./coverage.xml | ||
flags: unittests | ||
env_vars: RUNNER_OS,PYTHON_VERSION | ||
name: codecov-umbrella | ||
fail_ci_if_error: false | ||
|
||
old-xarray: | ||
name: xarray 2022.03.0 | ||
runs-on: "ubuntu-latest" | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for all branches and tags. | ||
- name: Set environment variables | ||
run: | | ||
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV | ||
- name: Set up conda environment | ||
uses: mamba-org/provision-with-micromamba@v15 | ||
with: | ||
environment-file: ci/environment.yml | ||
environment-name: cf_xarray_test | ||
cache-env: true | ||
extra-specs: | | ||
python="${{ matrix.python-version }}" | ||
xarray="2022.03.0" | ||
cache-environment: true | ||
create-args: >- | ||
python=${{ matrix.python-version }} | ||
- name: Install cf_xarray | ||
run: | | ||
python -m pip install --no-deps -e . | ||
|
@@ -106,16 +65,16 @@ jobs: | |
run: | ||
shell: bash -l {0} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
# need to fetch all tags to get a correct version | ||
fetch-depth: 0 # fetch all branches and tags | ||
- name: Set up conda environment | ||
uses: mamba-org/provision-with-micromamba@v15 | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: ci/environment-no-optional-deps.yml | ||
environment-name: cf_xarray_test | ||
cache-env: true | ||
cache-environment: true | ||
- name: Install cf_xarray | ||
run: | | ||
python -m pip install --no-deps -e . | ||
|
@@ -132,19 +91,19 @@ jobs: | |
shell: bash -l {0} | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.11"] | ||
python-version: ["3.9", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch all history for all branches and tags. | ||
- name: Set up conda environment | ||
uses: mamba-org/provision-with-micromamba@v15 | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: ci/environment.yml | ||
environment-name: cf_xarray_test | ||
cache-env: true | ||
extra-specs: | | ||
python="${{ matrix.python-version }}" | ||
cache-environment: true | ||
create-args: >- | ||
python=${{ matrix.python-version }} | ||
- name: Install cf_xarray | ||
run: | | ||
python -m pip install --no-deps -e . | ||
|
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 |
---|---|---|
|
@@ -12,13 +12,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: github.repository == 'xarray-contrib/cf-xarray' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: 3.8 | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
|
@@ -53,7 +53,7 @@ jobs: | |
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: 3.8 | ||
python-version: "3.10" | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: releases | ||
|
@@ -72,7 +72,7 @@ jobs: | |
- name: Publish package to TestPyPI | ||
if: github.event_name == 'push' | ||
uses: pypa/[email protected].7 | ||
uses: pypa/[email protected].10 | ||
with: | ||
password: ${{ secrets.TESTPYPI_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
@@ -96,6 +96,6 @@ jobs: | |
name: releases | ||
path: dist | ||
- name: Publish package to PyPI | ||
uses: pypa/[email protected].7 | ||
uses: pypa/[email protected].10 | ||
with: | ||
verbose: true |
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
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,20 +1,17 @@ | ||
# Required | ||
version: 2 | ||
|
||
build: | ||
os: 'ubuntu-20.04' | ||
os: ubuntu-22.04 | ||
tools: | ||
python: 'mambaforge-4.10' | ||
python: mambaforge-4.10 | ||
jobs: | ||
post_checkout: | ||
- (git --no-pager log --pretty="tformat:%s" -1 | grep -vqF "[skip-rtd]") || exit 183 | ||
pre_install: | ||
- conda list sphinx | ||
- conda list cf_xarray | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: doc/conf.py | ||
|
||
# Optionally set the version of Python and requirements required to build your docs | ||
conda: | ||
environment: ci/doc.yml | ||
environment: ci/doc.yml | ||
|
||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
formats: [] |
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
Oops, something went wrong.