Skip to content

Bump the actions-version group with 3 updates #39

Bump the actions-version group with 3 updates

Bump the actions-version group with 3 updates #39

Workflow file for this run

name: Test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
push:
branches:
- "trunk"
workflow_dispatch:
jobs:
execute_benchmarks:
name: Execute benchmarks
runs-on: ubuntu-24.04
env:
benchmark_options: >
--device CPU
-N 4000
-v
--warmup_steps 1000
--benchmark_steps 1000
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Create Python Environment
uses: mamba-org/setup-micromamba@068f1ab4b37ed9b3d9f73da7db90a0cda0a48d29 # v2.0.3
with:
micromamba-version: '2.0.2-2'
environment-name: test
environment-file: .github/workflows/environments/py312-conda-lock.yml
micromamba-root-path: ${{ github.workspace }}/micromamba
- name: Configure conda environment variables
run: |
echo "$MAMBA_ROOT_PREFIX/envs/test/bin" >> $GITHUB_PATH
- name: List benchmarks
run: ls **/*.py
- name: Cache configurations
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: initial_configuration_cache
key: ${{ env.benchmark_options }}
- name: Execute all benchmarks
run: >
python3 -u -m hoomd_benchmarks ${benchmark_options}
- name: Execute hpmc_sphere
run: python3 -u -m hoomd_benchmarks.hpmc_sphere ${benchmark_options}
- name: Execute md_pair_lj
run: python3 -u -m hoomd_benchmarks.md_pair_lj ${benchmark_options}
- name: Execute md_pair_wca
run: python3 -u -m hoomd_benchmarks.md_pair_wca ${benchmark_options}