Skip to content

Commit f5b3ad2

Browse files
author
Hope Woods
committed
Create new workflow to run test
1 parent 8275826 commit f5b3ad2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: ["main", "github-ci"]
6+
pull_request:
7+
branches: [ "main", "github-ci" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
# Set up micromamba
17+
- name: Set up micromamba
18+
uses: mamba-org/setup-micromamba@v2
19+
with:
20+
environment-file: rf_diffusion/environment/environment.yml
21+
init-shell: bash
22+
cache-environment: true
23+
24+
- name: Install pytest
25+
shell: micromamba-shell {0}
26+
run: |
27+
python -m pip install pytest
28+
29+
- name: Download weights
30+
run: |
31+
curl -O https://files.ipd.uw.edu/pub/2025_RFDpoly/train_session2024-07-08_1720455712_BFF_3.00.pt
32+
33+
- name: Run tests
34+
shell: micromamba-shell {0}
35+
run: |
36+
python -m pytest test/test_demo.py

0 commit comments

Comments
 (0)