Merge pull request #218 from TEOS-10/dependabot/github_actions/github… #159
This file contains hidden or 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
| name: Test code generation | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main ] | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| code-generation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: "3.x" | |
| - name: Install gsw | |
| run: > | |
| python -m pip install -r requirements-dev.txt | |
| && python -m pip install -e . | |
| - name: Test Code Generation | |
| run: > | |
| git clone https://github.com/TEOS-10/GSW-C.git ../GSW-C | |
| && 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 | |
| - name: Install gsw | |
| run: > | |
| python -m pip install -v -e . --no-deps --no-build-isolation --force-reinstall | |
| && python -m pytest -s -rxs -v gsw/tests | |
| permissions: | |
| actions: none |