-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1b1d41
commit 4e5692b
Showing
7 changed files
with
56 additions
and
71 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,46 @@ | ||
name: 'Install Using Conda' | ||
description: 'Setup environment and install using a Conda-based toolchain' | ||
inputs: | ||
type: | ||
description: 'Whether test or doc build' | ||
required: true | ||
python-version: | ||
description: 'What version of Python to use' | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup conda caching | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/conda_pkgs_dir | ||
key: conda-${{ inputs.type }}-${{ runner.os }}-${{ inputs.python-version}}-${{ hashFiles('ci/*') }} | ||
restore-keys: | | ||
conda-${{ inputs.type }}-${{ runner.os }}-${{ inputs.python-version}} | ||
conda-${{ inputs.type }}-${{ runner.os }} | ||
conda-${{ inputs.type }}- | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: conda-incubator/[email protected] | ||
with: | ||
miniforge-version: latest | ||
miniforge-variant: mambaforge | ||
python-version: ${{ inputs.python-version }} | ||
channel-priority: strict | ||
channels: conda-forge/label/testing,conda-forge | ||
show-channel-urls: true | ||
# Needed for caching | ||
use-only-tar-bz2: true | ||
|
||
- name: Install dependencies | ||
shell: bash -l {0} | ||
run: mamba install --quiet --yes --file ci/${{ inputs.type }}_requirements.txt --file ci/extra_requirements.txt --file ci/requirements.txt | ||
|
||
- name: Install | ||
shell: bash -l {0} | ||
# For some reason on Windows 3.7 building the wheel fails to properly include our extra | ||
# stuff. Executing the egg_info beforehand for some reason fixes it. No idea why. We're | ||
# deep in territory where googling for answers helps not at all. | ||
run: | | ||
python setup.py egg_info | ||
python -m pip install --no-deps . |
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 |
---|---|---|
|
@@ -34,37 +34,11 @@ jobs: | |
- name: Get tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
|
||
- name: Setup conda caching | ||
uses: actions/[email protected] | ||
- name: Install from Conda | ||
uses: ./.github/actions/install-conda | ||
with: | ||
path: ~/conda_pkgs_dir | ||
key: conda-docs-${{ runner.os }}-${{ matrix.python-version}}-${{ hashFiles('ci/*') }} | ||
restore-keys: | | ||
conda-docs-${{ runner.os }}-${{ matrix.python-version}} | ||
conda-docs-${{ runner.os }} | ||
conda-docs- | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: conda-incubator/[email protected] | ||
with: | ||
miniforge-version: latest | ||
miniforge-variant: mambaforge | ||
type: 'doc' | ||
python-version: ${{ matrix.python-version }} | ||
channel-priority: strict | ||
show-channel-urls: true | ||
# Needed for caching | ||
use-only-tar-bz2: true | ||
|
||
- name: Install dependencies | ||
run: mamba install --quiet --yes --file ci/doc_requirements.txt --file ci/extra_requirements.txt --file ci/requirements.txt | ||
|
||
- name: Install | ||
# For some reason on Windows 3.7 building the wheel fails to properly include our extra | ||
# stuff. Executing the egg_info beforehand for some reason fixes it. No idea why. We're | ||
# deep in territory where googling for answers helps not at all. | ||
run: | | ||
python setup.py egg_info | ||
python -m pip install --no-deps . | ||
|
||
- name: Build docs | ||
run: | | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,38 +33,11 @@ jobs: | |
- name: Get tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
|
||
- name: Setup conda caching | ||
uses: actions/[email protected] | ||
- name: Install from Conda | ||
uses: ./.github/actions/install-conda | ||
with: | ||
path: ~/conda_pkgs_dir | ||
key: conda-tests-${{ runner.os }}-${{ matrix.python-version}}-${{ hashFiles('ci/*') }} | ||
restore-keys: | | ||
conda-tests-${{ runner.os }}-${{ matrix.python-version}} | ||
conda-tests-${{ runner.os }} | ||
conda-tests- | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: conda-incubator/[email protected] | ||
with: | ||
miniforge-version: latest | ||
miniforge-variant: mambaforge | ||
type: 'test' | ||
python-version: ${{ matrix.python-version }} | ||
channel-priority: strict | ||
channels: conda-forge/label/testing,conda-forge | ||
show-channel-urls: true | ||
# Needed for caching | ||
use-only-tar-bz2: true | ||
|
||
- name: Install dependencies | ||
run: mamba install --quiet --yes --file ci/test_requirements.txt --file ci/extra_requirements.txt --file ci/requirements.txt | ||
|
||
- name: Install | ||
# For some reason on Windows 3.7 building the wheel fails to properly include our extra | ||
# stuff. Executing the egg_info beforehand for some reason fixes it. No idea why. We're | ||
# deep in territory where googling for answers helps not at all. | ||
run: | | ||
python setup.py egg_info | ||
python -m pip install --no-deps . | ||
|
||
- name: Run tests | ||
uses: ./.github/actions/run-tests | ||
|
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