Skip to content

v0.1.2 Release

v0.1.2 Release #618

Workflow file for this run

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
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0
build-recipe:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- 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: |
source $CONDA/bin/activate
conda install conda-build
conda-build -c distro-tooling .
lint-recipe:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: ./.github/actions/setup-env
- name: Run lint
run: |
source $CONDA/bin/activate
conda activate anaconda-linter
OUTPUT=`conda-lint .`
[[ ${OUTPUT} == "All checks OK" ]] || exit 1