-
Notifications
You must be signed in to change notification settings - Fork 0
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 #92 from anaconda-distribution/v0.1.3
Version 0.1.3 of percy
- Loading branch information
Showing
8 changed files
with
104 additions
and
117 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,34 @@ | ||
name: Set up environment | ||
description: Set up an percy environment | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
cache: 'pip' | ||
- name: Cache conda env | ||
id: cache-conda | ||
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | ||
env: | ||
cache-name: conda-env-cache | ||
with: | ||
cache: 'pip' | ||
path: '/usr/share/miniconda/envs' | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/environment.yml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Create Environment | ||
shell: bash | ||
if: ${{ steps.cache-conda.outputs.cache-hit == false }} | ||
# NOTE: We use `sed` to force a Python version in the `environment.yaml` file | ||
run: | | ||
conda update -n base -c defaults conda | ||
source $CONDA/etc/profile.d/conda.sh | ||
conda init bash | ||
sed -i 's/- python >=3.*$/- python ${{ inputs.python-version }}.*/' environment.yaml | ||
conda env create -f environment.yaml --name percy --force | ||
conda run --name percy pip install . |
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,63 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
name: Test | ||
|
||
jobs: | ||
# NOTE: Tests run via `pre-commit` | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: ./.github/actions/setup-env | ||
with: | ||
python-version: "3.11" | ||
# Executes `pre-commit` with the `make` directive to ensure all dependencies are found | ||
- run: | | ||
source $CONDA/bin/activate | ||
conda activate percy | ||
make pre-commit | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Test on ${{ matrix.python-version }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] # TODO: Bump this to 3.12 when supported and drop 3.11 (covered in pre-commit) | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: ./.github/actions/setup-env | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- run: | | ||
source $CONDA/bin/activate | ||
conda activate percy | ||
make test | ||
build-recipe: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
repository: AnacondaRecipes/percy-feedstock | ||
path: ./feedstock | ||
- name: Cache conda env | ||
id: cache-conda | ||
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | ||
env: | ||
cache-name: conda-env-cache | ||
with: | ||
path: '/usr/share/miniconda/envs' | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/environment.yml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Build package | ||
run: | | ||
cp -r ./feedstock/abs.yaml ./feedstock/recipe . | ||
source $CONDA/bin/activate | ||
conda install conda-build | ||
conda-build -c distro-tooling . |
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
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
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