[ci run] test subdag-depth 1 #1286
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
name: Bulk branch | |
on: | |
push: | |
branches: | |
- bulk | |
- bulk-performance-testing | |
jobs: | |
build-linux: | |
name: Bulk Linux Builds | |
if: "contains(github.event.head_commit.message, '[ci run]')" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
max-parallel: 3 | |
matrix: | |
runner: [0, 1, 2] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set git user | |
run: | | |
git config user.name BiocondaBot | |
git config user.email [email protected] | |
- name: set path | |
run: echo "/opt/mambaforge/bin" >> $GITHUB_PATH | |
- name: Fetch conda install script | |
run: | | |
wget https://raw.githubusercontent.com/bioconda/bioconda-common/bulk/{common,install-and-set-up-conda,configure-conda}.sh | |
- name: Restore cache | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: /opt/mambaforge | |
key: ${{ runner.os }}--bulk--${{ hashFiles('install-and-set-up-conda.sh', 'common.sh', 'configure-conda.sh') }} | |
- name: Set up bioconda-utils | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: bash install-and-set-up-conda.sh | |
# This script can be used to reconfigure conda to use the right channel setup. | |
# This has to be done after the cache is restored, because | |
# the channel setup is not cached as it resides in the home directory. | |
# We could use a system-wide (and therefore cached) channel setup, | |
# but mamba does not support that at the time of implementation | |
# (it ignores settings made with --system). | |
- name: Configure conda | |
run: bash configure-conda.sh | |
- name: Install dev version of bioconda-utils for testing https://github.com/bioconda/bioconda-utils/pull/950 | |
run: | | |
source /opt/mambaforge/etc/profile.d/conda.sh | |
source /opt/mambaforge/etc/profile.d/mamba.sh | |
mamba activate bioconda | |
pip install git+https://github.com/bioconda/bioconda-utils.git@7c4db3712080b50950740dc2ef1ce39a7b5c74aa | |
- name: Build and upload | |
env: | |
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
INVOLUCRO_AUTH: ${{ secrets.INVOLUCRO_AUTH }} | |
QUAY_OAUTH_TOKEN: ${{ secrets.QUAY_OAUTH_TOKEN }} | |
# Mimic circleci | |
OSTYPE: "linux-gnu" | |
CI: "true" | |
run: | | |
set -e | |
eval "$(conda shell.bash hook)" | |
conda activate bioconda | |
echo '============' | |
conda info --all | |
conda config --show-sources | |
python -c 'import bioconda_utils.utils as u ; import pathlib as p ; print(*(f"{f}:\n{p.Path(f).read_text()}" for f in u.load_conda_build_config().exclusive_config_files), sep="\n")' | |
echo '============' | |
bioconda-utils build recipes config.yml \ | |
--worker-offset ${{ matrix.runner }} --n-workers 3 \ | |
--docker --subdag-depth 1 \ | |
--skiplist-leafs | |
conda clean -y --all | |