forked from c-proof/pyglider
-
Notifications
You must be signed in to change notification settings - Fork 0
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
7 changed files
with
42 additions
and
51 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 |
---|---|---|
|
@@ -7,42 +7,33 @@ jobs: | |
strategy: | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.9", "3.10"] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache conda | ||
uses: actions/cache@v2 | ||
env: | ||
# Increase this value to reset cache if etc/example-environment.yml has not changed | ||
CACHE_NUMBER: 0 | ||
- uses: actions/checkout@v4 | ||
- name: mamba setup enviroment | ||
uses: mamba-org/[email protected] | ||
with: | ||
path: ~/conda_pkgs_dir | ||
key: | ||
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{hashFiles('environment.yml') }} | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: pyglider-test | ||
environment-name: test-env | ||
environment-file: tests/environment.yml | ||
python-version: ${{ matrix.python-version }} | ||
channel-priority: strict | ||
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | ||
create-args: >- | ||
python=${{ matrix.python-version }} | ||
- name: Conda info | ||
shell: bash -l {0} | ||
shell: micromamba-shell {0} | ||
run: conda info; conda list | ||
- name: install pyglider source | ||
shell: bash -l {0} | ||
shell: micromamba-shell {0} | ||
run: which pip; pip install -e . | ||
- name: Process seaexplorer | ||
shell: bash -l {0} | ||
shell: micromamba-shell {0} | ||
run: which python; cd tests/example-data/example-seaexplorer; make clean-all; python process_deploymentRealTime.py | ||
- name: Process slocum | ||
shell: bash -l {0} | ||
shell: micromamba-shell {0} | ||
run: which python; cd tests/example-data/example-slocum; make clean-all; python process_deploymentRealTime.py | ||
- name: Process seaexplorer-legato-flntu-arod-ad2cp | ||
shell: bash -l {0} | ||
shell: micromamba-shell {0} | ||
run: which python; cd tests/example-data/example-seaexplorer-legato-flntu-arod-ad2cp; make clean-all; python process_deploymentRealTime.py | ||
- name: Run tests | ||
shell: bash -l {0} | ||
shell: micromamba-shell {0} | ||
run: which python; pytest --cov --cov-report xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v4 |
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 |
---|---|---|
|
@@ -9,9 +9,9 @@ dependencies: | |
- dask | ||
- netcdf4 | ||
- gsw | ||
- polars>=1.1 | ||
- scipy | ||
- bitstring | ||
- pooch | ||
- pip: | ||
- dbdreader | ||
- polars |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ numpy | |
pooch | ||
scipy | ||
xarray | ||
polars>0.16 | ||
polars>=1.1 |
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