Skip to content

Type-check and unit-test the mpnn, rfd3na, and rfd3 model packages (#… #61

Type-check and unit-test the mpnn, rfd3na, and rfd3 model packages (#…

Type-check and unit-test the mpnn, rfd3na, and rfd3 model packages (#… #61

name: integration-tests
on:
push:
branches: [main, production]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rf3-integration:
name: pytest (rf3 integration)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install package + dev extras
run: pip install -e ".[dev]"
- name: Cache RF3 checkpoint
id: cache-ckpt
uses: actions/cache@v4
with:
path: ~/.cache/rf3_checkpoints
key: rf3-ckpt-rf3_foundry_01_24_latest_remapped
- name: Download RF3 checkpoint
if: steps.cache-ckpt.outputs.cache-hit != 'true'
run: |
mkdir -p ~/.cache/rf3_checkpoints
wget -q \
-O ~/.cache/rf3_checkpoints/rf3_foundry_01_24_latest_remapped.ckpt \
http://files.ipd.uw.edu/pub/rf3/rf3_foundry_01_24_latest_remapped.ckpt
- name: Run integration tests
run: |
RF3_CKPT_PATH="$HOME/.cache/rf3_checkpoints/rf3_foundry_01_24_latest_remapped.ckpt" \
pytest models/rf3/tests/integration/ \
-m integration \
-v \
--tb=short