Skip to content

Upgrade to Python 3.12 / Snakemake 8 #414

Upgrade to Python 3.12 / Snakemake 8

Upgrade to Python 3.12 / Snakemake 8 #414

Workflow file for this run

name: Post-build checks
on:
pull_request:
branches:
- main
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)"
required: false
default: false
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-12 provides Intel builds, macos-14 provides M1 builds
os: [ubuntu-latest, windows-latest, macos-12, macos-14]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: nanasess/setup-chromedriver@v2
with:
chromedriver-version: "126.0.6478.185"
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: build
miniforge-version: latest
auto-update-conda: true
auto-activate-base: true
python-version: 3.12
use-mamba: true
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v2
- name: install MacOS (M1) build dependencies
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ] && [ "$RUNNER_ARCH" == "ARM64" ]; then
brew install pango
fi
# setuptools needs to be available globally for the yarn build script
- name: Install setuptools
shell: bash -el {0} # required to sustain the conda environment
run: |
python -m pip install --upgrade pip
python -m pip install setuptools
- name: build
working-directory: ./electron-app
shell: bash -el {0}
run: |
corepack enable
./build_deps.sh
yarn install
yarn
yarn build
yarn package
- name: install docker MacOS (Intel chips)
shell: bash -el {0}
run: |
if [ "$RUNNER_OS" == "macOS" ] && [ "$RUNNER_ARCH" == "X64" ]; then
brew install docker
colima start
fi
# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: tmate debugging
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
- name: postbuild-tests
working-directory: ./electron-app
shell: bash -el {0}
run: |
./run_postbuild_tests.sh