-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.31 KB
/
verify-publication-to-biosimulations.yml
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
40
41
42
43
44
45
46
47
name: Verify that projects were successfully published to BioSimulations
on:
schedule:
- cron: '0 7 * * 0' # weekly at 7:00 am on Sundays
workflow_dispatch:
jobs:
verify:
name: Verify that projects were successfully published to BioSimulations
runs-on: ubuntu-latest
steps:
# Checkout repository
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
ref: dev
lfs: true
# Install requirements
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Setup pip cache
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/Python
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements.optional.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install pip and setuptools
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
# install package
- name: Install the package
run: python -m pip install -e .
# Verify that each project was successfully published
- name: Verify that each project was successfully published
run: biosimulations-bigg verify-publication