-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (37 loc) · 925 Bytes
/
test.yaml
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
31
32
33
34
35
36
37
38
39
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