-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conda is installed on the runner by default, but we need to do additional setup <actions/runner-images#3477 (comment)> to make it available on the command line.
- Loading branch information
Showing
1 changed file
with
11 additions
and
16 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 |
---|---|---|
|
@@ -67,6 +67,7 @@ jobs: | |
runner: | ||
- macos-12 | ||
- ubuntu-22.04 | ||
- windows-2022 | ||
python: | ||
- "3.8" | ||
- "3.9" | ||
|
@@ -77,11 +78,14 @@ jobs: | |
pip-cache-dir: ~/Library/Caches/pip | ||
- runner: ubuntu-22.04 | ||
pip-cache-dir: ~/.cache/pip | ||
- runner: windows-2022 | ||
pip-cache-dir: ~\AppData\Local\pip\Cache | ||
steps: | ||
- name: Check out repository | ||
uses: actions/[email protected] | ||
|
||
- name: Use Python ${{ matrix.python }} | ||
id: setup-python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
@@ -97,23 +101,14 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-pip-${{ secrets.CACHE_SEED }}-${{ matrix.python }}- | ||
- name: Update package registry on Linux | ||
run: sudo apt-get update | ||
if: startsWith(runner.os, 'Linux') | ||
|
||
- name: Install GDAL on Linux | ||
run: sudo apt-get --assume-yes install libgdal-dev | ||
if: startsWith(runner.os, 'Linux') | ||
|
||
- name: Install GDAL on MacOS | ||
run: brew install gdal | ||
if: startsWith(runner.os, 'macOS') | ||
|
||
- name: Upgrade pip | ||
run: pip install --upgrade pip | ||
- name: Setup Conda | ||
uses: s-weigand/[email protected] | ||
with: | ||
conda-channels: conda-forge | ||
python-version: ${{ steps.setup-python.outputs.python-version }} | ||
|
||
- name: Install Poetry | ||
run: pip install poetry | ||
- name: Install Conda environment packages | ||
run: conda install --channel=conda-forge --quiet --yes gdal poetry | ||
|
||
- name: Install Python packages | ||
run: poetry install --only=main --no-root | ||
|