forked from open-life-science/open-life-science.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (80 loc) · 2.53 KB
/
ci.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: CI for push and PR
on: [push, pull_request]
jobs:
check-internal-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Build website
run: bundle exec jekyll build --strict_front_matter
- name: Validate HTML and check links
run: |
bundle exec htmlproofer \
--allow_missing_href=true \
--ignore-urls "/.*localhost.*/","/.*gitter\.im.*/" \
--enforce-https=false \
--disable-external=true \
--ignore_empty_alt=true \
--ignore_missing_alt=true \
--check-internal-hash=false \
./_site
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.11']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: python -m pip install 'tox>=1.8.0'
- name: Lint
run: tox -e lint
test-other-workflows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
activate-environment: ols-website
environment-file: environment.yml
- name: Update Open Seeds schedule
shell: bash -el {0}
run: |
bash bin/openseeds/update_schedule.sh
- name: Update Open Seeds library
shell: bash -el {0}
run: |
python bin/prepare_website_data.py buildlibrary -p "openseeds"
- name: Update Nebula schedule
shell: bash -el {0}
run: |
bash bin/nebula/update_schedule.sh
- name: Update people data artifacts
shell: bash -el {0}
run: |
python bin/prepare_website_data.py extractfullpeopledata
- name: Update Open Seeds library artifacts
shell: bash -el {0}
run: |
python bin/prepare_website_data.py extractlibrary -p "openseeds"
- name: Update Open Seeds projects
shell: bash -el {0}
run: |
python bin/prepare_website_data.py createprojecttable -p "openseeds"
- name: Update bibliography
shell: bash -el {0}
env:
ZOTERO_API: ${{ secrets.ZoteroAPI }}
run: |
python bin/prepare_website_data.py updatebibliography -a "$ZOTERO_API"