-
Notifications
You must be signed in to change notification settings - Fork 68
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 #95 from ocefpaf/remove_appveyor_travis
Remove AppVeyor and Travis-CI
- Loading branch information
Showing
9 changed files
with
166 additions
and
150 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,47 @@ | ||
name: Publish to PyPI | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
packages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Get tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
shell: bash | ||
|
||
- name: Install build tools | ||
run: | | ||
python -m pip install --upgrade pip wheel setuptools setuptools_scm build twine pytest pandas pytz requests | ||
shell: bash | ||
|
||
- name: Build binary wheel | ||
run: python -m build --sdist --wheel . --outdir dist | ||
|
||
- name: CheckFiles | ||
run: | | ||
ls dist | ||
shell: bash | ||
|
||
- name: Test wheels | ||
run: | | ||
cd dist && python -m pip install erddapy*.whl | ||
python -m twine check * | ||
shell: bash | ||
|
||
- name: Publish a Python distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PASSWORD }} |
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 |
---|---|---|
@@ -1,47 +1,39 @@ | ||
name: Code Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
python-version: [3.6, 3.9] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ["3.6", "3.7", "3.8", "3.9"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Conda | ||
uses: s-weigand/setup-conda@v1 | ||
with: | ||
update-conda: true | ||
activate-conda: false | ||
conda-channels: conda-forge | ||
|
||
- name: Python ${{ matrix.python-version }} | ||
shell: bash -l {0} | ||
run: | | ||
conda create --yes --name TEST python=${{ matrix.python-version }} pip --file requirements.txt --file requirements-dev.txt --channel conda-forge --strict-channel-priority | ||
conda create --name TEST python=${{ matrix.python-version }} pip --file requirements.txt --file requirements-dev.txt | ||
source activate TEST | ||
pip install -e . --no-deps --force-reinstall | ||
- name: Tarball tests | ||
shell: bash -l {0} | ||
run: | | ||
source activate TEST | ||
pip wheel . -w dist --no-deps | ||
check-manifest --verbose | ||
twine check dist/* | ||
conda info --all | ||
conda list | ||
- name: Tests | ||
shell: bash -l {0} | ||
run: | | ||
source activate TEST | ||
pytest -vv | ||
pytest -vv -rxs tests -m "not headless" |
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,35 @@ | ||
name: Notebook Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Conda | ||
uses: s-weigand/setup-conda@v1 | ||
with: | ||
update-conda: true | ||
activate-conda: false | ||
conda-channels: conda-forge | ||
|
||
- name: Python 3.9 | ||
shell: bash -l {0} | ||
run: | | ||
conda create --name TEST python=3.9 pip --file requirements.txt --file requirements-dev.txt | ||
source activate TEST | ||
pip install -e . --no-deps --force-reinstall | ||
conda info --all | ||
conda list | ||
- name: Notebook tests | ||
shell: bash -l {0} | ||
run: | | ||
source activate TEST | ||
pytest --nbval-lax examples |
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,35 @@ | ||
name: Headless Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Conda | ||
uses: s-weigand/setup-conda@v1 | ||
with: | ||
update-conda: true | ||
activate-conda: false | ||
conda-channels: conda-forge | ||
|
||
- name: Python 3.9 | ||
shell: bash -l {0} | ||
run: | | ||
conda create --name TEST python=3.9 pip --file requirements.txt --file requirements-dev.txt | ||
source activate TEST | ||
pip install -e . --no-deps --force-reinstall | ||
conda info --all | ||
conda list | ||
- name: Tests | ||
shell: bash -l {0} | ||
run: | | ||
source activate TEST | ||
pytest -vv -rxs tests -m "headless" |
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,37 @@ | ||
name: Tarball Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Conda | ||
uses: s-weigand/setup-conda@v1 | ||
with: | ||
update-conda: true | ||
activate-conda: false | ||
conda-channels: conda-forge | ||
|
||
- name: Python 3 | ||
shell: bash -l {0} | ||
run: | | ||
conda create --name TEST python=3 pip --file requirements.txt --file requirements-dev.txt | ||
source activate TEST | ||
pip install -e . --no-deps --force-reinstall | ||
conda info --all | ||
conda list | ||
- name: Tarball tests | ||
shell: bash -l {0} | ||
run: | | ||
source activate TEST | ||
pip wheel . -w dist --no-deps | ||
check-manifest --verbose | ||
twine check dist/* |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ flake8-print | |
isort | ||
jupyter | ||
nbsphinx | ||
nbval | ||
pylint | ||
pytest | ||
pytest-cov | ||
|
This file was deleted.
Oops, something went wrong.