-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pip dependencies to include scipy (#88)
* Update pip dependencies to include scipy * Update GHA module * Update CI * Update dependency list * Update CI build * Update badge link
- Loading branch information
Showing
5 changed files
with
40 additions
and
26 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 |
---|---|---|
|
@@ -21,24 +21,27 @@ jobs: | |
matrix: | ||
include: | ||
- os: "ubuntu-latest" | ||
python-version: '3.8' # first supported | ||
python-version: '3.9' # first supported | ||
- os: "windows-latest" | ||
python-version: '3.9' # first supported | ||
- os: "macos-latest" | ||
python-version: '3.9' # first supported | ||
- os: "ubuntu-latest" | ||
python-version: '3.12' # latest supported | ||
- os: "windows-latest" | ||
python-version: '3.12' # latest supported | ||
- os: "macos-latest" | ||
python-version: '3.12' # latest supported | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniconda-version: "latest" | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: environment.yml | ||
#environment-file: environment.yml # we use setup.cfg dependencies only | ||
activate-environment: pygeogrids | ||
auto-activate-base: false | ||
- name: Print environment infos | ||
|
@@ -52,13 +55,13 @@ jobs: | |
- name: Export Environment | ||
shell: bash -l {0} | ||
run: | | ||
mkdir -p .artifacts | ||
mkdir -p artifacts | ||
filename=env_py${{ matrix.python-version }}_${{ matrix.os }}.yml | ||
conda env export --no-builds | grep -v "prefix" > .artifacts/$filename | ||
conda env export --no-builds | grep -v "prefix" > artifacts/$filename | ||
- name: Install package and test | ||
shell: bash -l {0} | ||
run: | | ||
python setup.py develop | ||
pip install -e .[testing] | ||
pytest | ||
- name: Upload Coverage | ||
shell: bash -l {0} | ||
|
@@ -72,21 +75,19 @@ jobs: | |
shell: bash -l {0} | ||
run: | | ||
pip install setuptools_scm | ||
if [ ${{ matrix.os }} == "windows-latest" ] | ||
if [ ${{ matrix.os }} == "ubuntu-latest" ] | ||
then | ||
# build whls on windows | ||
pip install . | ||
python setup.py bdist_wheel --dist-dir .artifacts/dist | ||
else | ||
# build dist on linux | ||
python setup.py sdist --dist-dir .artifacts/dist | ||
python setup.py sdist --dist-dir artifacts/dist | ||
fi | ||
ls .artifacts/dist | ||
pip install wheel | ||
python setup.py bdist_wheel --dist-dir artifacts/dist | ||
ls artifacts/dist | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Artifacts | ||
path: .artifacts/* | ||
name: Artifacts-py${{ matrix.python-version }}-${{ matrix.os }} | ||
path: artifacts/* | ||
coveralls: | ||
name: Submit Coveralls 👚 | ||
needs: build | ||
|
@@ -109,7 +110,11 @@ jobs: | |
echo "GITHUB_REF = $GITHUB_REF" | ||
echo "GITHUB_REPOSITORY = $GITHUB_REPOSITORY" | ||
- name: Download Artifacts | ||
uses: actions/[email protected] | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: Artifacts | ||
pattern: Artifacts-* | ||
merge-multiple: true | ||
- name: Display downloaded files | ||
run: ls -aR | ||
- name: Upload to PyPI | ||
|
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 |
---|---|---|
@@ -1,17 +1,15 @@ | ||
# To keep the RTD build as small as possible, we define a separate .yml here | ||
# Other doc dependencies are defined in setup.cfg and installed via `pip install .[docs]` | ||
name: docs | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.10 | ||
- ipykernel | ||
- nbsphinx | ||
- python=3.12 | ||
- mock | ||
- pillow | ||
- sphinx<7 | ||
- sphinx_rtd_theme | ||
- pip | ||
- pip: | ||
- recommonmark | ||
- readthedocs-sphinx-ext |
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