Skip to content

Auto fix for license_overspecified #629

Auto fix for license_overspecified

Auto fix for license_overspecified #629

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
# Executes `pre-commit` with the `make` directive to ensure all dependencies are found
- run: |
source $CONDA/bin/activate
conda activate anaconda-linter
make pre-commit
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