-
Notifications
You must be signed in to change notification settings - Fork 11
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 #125 from oceanmodeling/dev
Unify IOC/COOPS API
- Loading branch information
Showing
26 changed files
with
3,193 additions
and
855 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,38 @@ | ||
name: "Test installation from PyPI" | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "4 5 * * *" # Every day at 05:04 | ||
|
||
jobs: | ||
test_pypi_installation: | ||
name: test PyPI installation | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: "ubuntu-latest" | ||
python: "3.12" | ||
steps: | ||
- uses: actions/checkout@main | ||
- uses: actions/setup-python@main | ||
with: | ||
python-version: ${{ matrix.python }} | ||
# Debug | ||
- run: type -a python | ||
- run: python --version | ||
- run: python -m pip --version | ||
- run: python -m pip cache info | ||
# Install the package from pypi | ||
- run: python -m pip install searvey | ||
- run: python -m pip freeze | ||
# Checkout the version of code that got installed from PyPI | ||
- run: git fetch --tags | ||
- run: git checkout v$(python -c 'import importlib.metadata; print(importlib.metadata.version("searvey"))') | ||
# Install test dependencies | ||
- run: pip install -U $(cat requirements/requirements-dev.txt| grep --extended-regexp 'pytest=|pytest-recording=|urllib3=' | cut -d ';' -f1) | ||
# Remove the source code (just to be sure that it is not being used) | ||
- run: rm -rf searvey | ||
# Run the tests | ||
- run: make test |
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
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.