forked from deepmodeling/dpdata
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 774 Bytes
/
Copy pathbenchmark.yml
File metadata and controls
30 lines (28 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Benchmark
on:
- push
- pull_request
jobs:
benchmark:
if: ${{ github.repository_owner == 'deepmodeling' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.12
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: |
**/requirements*.txt
**/pyproject.toml
- name: Install dependencies
run: uv pip install --system .[test,amber,ase,pymatgen,benchmark] rdkit 'openbabel>=3.2.0'
- name: Run benchmarks
uses: CodSpeedHQ/action@v4
with:
token: ${{ secrets.CODSPEED_TOKEN }}
mode: walltime
run: pytest benchmark/ --codspeed