Skip to content

[pre-commit.ci] pre-commit autoupdate #183

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #183

Workflow file for this run

name: Test Bohrium
on:
push:
pull_request_target:
types:
- "labeled"
jobs:
test:
runs-on: ubuntu-latest
environment: bohrium
if: github.repository_owner == 'deepmodeling' && (github.event.label.name == 'Test Bohrium' || github.event_name == 'push')
steps:
- uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.merge_commit_sha }}"
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- run: pip install uv
- run: uv pip install --system .[bohrium] coverage
- name: Test
run: coverage run --source=./dpdispatcher -m unittest -v tests/test_run_submission_bohrium.py && coverage report
env:
DPDISPATCHER_TEST: bohrium
BOHRIUM_EMAIL: ${{ secrets.BOHRIUM_EMAIL }}
BOHRIUM_PASSWORD: ${{ secrets.BOHRIUM_PASSWORD }}
BOHRIUM_PROJECT_ID: ${{ secrets.BOHRIUM_PROJECT_ID }}
BOHRIUM_ACCESS_KEY: ${{ secrets.BOHRIUM_ACCESS_KEY }}
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
remove_label:
permissions:
contents: read
pull-requests: write
# so one can re-trigger the workflow without manually removing the label
runs-on: ubuntu-latest
if: github.repository_owner == 'deepmodeling' && github.event.label.name == 'Test Bohrium'
steps:
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: Test Bohrium
number: ${{ github.event.pull_request.number }}