Pubs Updates from HRI24 #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test pubs against website | |
on: | |
# Pushes / merges to master | |
push: | |
branches: | |
- master | |
# On creation and updating of PR | |
pull_request: | |
types: [opened, reopened, synchronize] | |
# Only those targeting master branch | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout pubs | |
uses: actions/checkout@v3 | |
with: | |
path: pubs | |
- name: Checkout prl-website | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.READ_PAT }} | |
ref: master | |
repository: personalrobotics/prl-website | |
path: prl-website | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
cache: pip | |
cache-dependency-path: prl-website/setup.py | |
- name: Install PRL website | |
run: pip install -e ./prl-website/ | |
- name: Run Test | |
run: python pubs/test_pubs.py |