generated from worldbank/template
-
Notifications
You must be signed in to change notification settings - Fork 6
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 #13 from worldbank/fix-install
minor fixes to install process
- Loading branch information
Showing
2 changed files
with
49 additions
and
2 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,47 @@ | ||
# Workflow to test installation of the GOSTnetsraster package | ||
|
||
name: build-package | ||
|
||
# Controls when the action will run. | ||
# Triggers the workflow on push or pull request events as well as on | ||
# a monthly cron schedule. Also allows manual triggering. | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
workflow_dispatch: | ||
|
||
# Set up jobs to spin up a virtual machine and build the package on each of | ||
# the operating systems we want to test on. We use a matrix to run the same | ||
# job on multiple operating systems and Python versions. At this time our | ||
# 'test' is very simple and consists of installing the package and trying | ||
# to import it. | ||
jobs: | ||
test-os: | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} with minconda | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
auto-update-conda: true | ||
- name: Print Python Version | ||
run: | | ||
python -V | ||
- name: Install GOSTnetsraster | ||
run: | | ||
pip install . | ||
- name: Test GOSTnetsraster install | ||
run: | | ||
python -c "import GOSTnetsraster" |
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