Skip to content

Commit

Permalink
add scipy and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Apr 25, 2024
1 parent 277a4ed commit 371b43c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/test_code_generation.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
name: Tests
name: Test code generation

on:
pull_request:
push:
branches: [main]

jobs:
run:
code-genrations:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Micromamba
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: TEST
init-shell: bash
create-args: >-
python=3.12 --file numpy requirements-dev.txt --channel conda-forge
- name: Install gsw
run: |
python -m pip install -e . --no-deps --force-reinstall
python=3 pip
--file requirements-dev.txt
--channel conda-forge
# - name: Install nightly version of numpy
# run: |
Expand All @@ -34,10 +35,14 @@ jobs:
- name: Test Code Generation
run: >
git clone https://github.com/TEOS-10/GSW-C.git ../GSW-C
&& git clone https://github.com/TEOS-10/Matlab.git ../GSW-Matlab
&& git clone https://github.com/TEOS-10/GSW-Matlab.git ../GSW-Matlab
&& python tools/copy_from_GSW-C.py
&& python tools/mat2npz.py
&& python tools/make_ufuncs.py
&& python tools/make_wrapped_ufuncs.py
&& python tools/fix_wrapped_ufunc_typos.py
&& python tools/fix_wrapped_ufunc_typos.py
- name: Install gsw
run: >
python -m pip install -e . --no-deps --force-reinstall
&& python -m pytest -s -rxs -v gsw/tests
7 changes: 4 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
check-manifest
dask
numpydoc
pandas>=2
pytest
scipy
setuptools_scm
sphinx
sphinx_rtd_theme
twine
pandas>=2
dask
twine

0 comments on commit 371b43c

Please sign in to comment.