Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

test

test #110

Workflow file for this run

name: test
on:
pull_request:
branches:
- main
merge_group:
workflow_call:
jobs:
build-conda-package:
name: Build conda package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
fetch-depth: 0
- name: Create build environment
run: |
source $CONDA/bin/activate
conda create -n build --file ./etc/build.linux-64.lock
- name: conda build
run: |
source $CONDA/bin/activate && conda activate build
make build
- name: Upload the build artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: conda-${{ github.sha }}
path: ./conda-bld
if-no-files-found: error
retention-days: 7
build-wheel:
name: Build the wheel
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: "3.14"
- name: Install build dependencies
run: pip install build
- name: Build the package
run: python -m build
- name: Upload the build artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: wheel-${{ github.sha }}
path: dist/*
if-no-files-found: error
retention-days: 7
# This check job runs to ensure all tests and builds have passed, such that we can use it as a "wildcard"
# for branch protection to ensure all tests pass before a PR can be merged.
check:
name: Check all tests passed
if: always()
needs: [build-conda-package, build-wheel]
runs-on: ubuntu-latest
steps:
- name: Decide whether all required jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}