Skip to content

Commit

Permalink
workflow for testing bulk failures
Browse files Browse the repository at this point in the history
  • Loading branch information
aliciaaevans committed Jun 7, 2024
1 parent 747811f commit 71bb1b9
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/Bulk-PR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: PR to Bulk branch
on:
pull_request:
branches:
- bulk
types: [opened, synchronize, reopened]

concurrency:
group: build-${{ github.event.pull_request.number || github.head_ref }}
cancel-in-progress: true

jobs:
build_and_test-osx:
name: Bulk PR OSX
runs-on: macos-13 # amd64
strategy:
fail-fast: true
max-parallel: 13
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- 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: Set up bioconda-utils
run: bash install-and-set-up-conda.sh

- name: Configure conda
run: bash configure-conda.sh

- name: Build and Test
env:
# Mimic circleci
OSTYPE: "darwin"
CI: "true"
run: |
set -e
eval "$(conda shell.bash hook)"
conda activate bioconda
# Clean up lingering build artifacts
rm -f /opt/mambaforge/envs/bioconda/conda-bld/osx-64/*.tar.bz2
# The SDK isn't actually cached, so reinstall it
run_conda_forge_build_setup
if [ -z "$GITHUB_BASE_REF" ] ; then
export GITHUB_BASE_REF="bulk"
fi
git fetch origin "$GITHUB_BASE_REF"
bioconda-utils build recipes config.yml \
--lint \
--git-range origin/"$GITHUB_BASE_REF" HEAD
- name: Prepare artifacts
run: |
(
rm -rf /tmp/artifacts
mkdir -p /tmp/artifacts/packages
cd /opt/mambaforge/envs/bioconda/conda-bld || exit 0
find -name .cache | xargs rm -rf || true
for n in index.html channeldata.json osx-64 noarch; do
cp -rv $n /tmp/artifacts/packages || true
done
) || true
- name: Archive packages
uses: actions/upload-artifact@v4
with:
name: osx-64-packages
path: |
/tmp/artifacts
3 changes: 3 additions & 0 deletions azure-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
pr:
branches:
exclude:
- bulk
autoCancel: true
trigger:
branches:
Expand Down

0 comments on commit 71bb1b9

Please sign in to comment.