-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #353 from freemansw1/add_matrix_testing
Add matrix CI Tests on multiple Python versions and OS versions
- Loading branch information
Showing
6 changed files
with
84 additions
and
8 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,53 @@ | ||
name: Matrix Testing CI | ||
# this is similar to the pyart CI action | ||
on: [push, pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
# This job installs dependencies and runs tests across a matrix of python and OS versions. | ||
#Add if: github.repository == 'tobac-project/tobac' to limit runs to tobac repo | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.os }}-${{ matrix.python-version }} | ||
runs-on: ${{ matrix.os }}-latest | ||
if: github.repository == 'tobac-project/tobac' | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
os: [macos, ubuntu, windows] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Install micromamba and dependencies | ||
- name: Setup Conda Environment | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: environment-ci.yml | ||
activate-environment: pyart-dev | ||
cache-downloads: true | ||
channels: conda-forge | ||
channel-priority: strict | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Fetch all history for all tags and branches | ||
run: | | ||
git fetch --prune --unshallow | ||
- name: Install tobac | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install -e . --no-deps --force-reinstall | ||
- name: Run Tests | ||
id: run_tests | ||
shell: bash -l {0} | ||
run: | | ||
python -m pytest -v |
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,4 +12,4 @@ trackpy | |
pre-commit | ||
black | ||
pytest | ||
|
||
typing_extensions |
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: pyart-dev | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- numpy | ||
- scipy | ||
- scikit-image | ||
- scikit-learn | ||
- pandas | ||
- matplotlib | ||
- iris | ||
- xarray | ||
- cartopy | ||
- trackpy | ||
- pytest | ||
- typing_extensions |
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 |
---|---|---|
|
@@ -14,4 +14,5 @@ notebook | |
pytables | ||
s3fs | ||
arm_pyart | ||
h5netcdf | ||
h5netcdf | ||
typing_extensions |
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