forked from hpc-carpentry/hpc-shell
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (45 loc) · 1.18 KB
/
test_and_build.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
name: Check lesson and build for all configs
on:
pull_request:
push:
branches:
- gh-pages
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: Install codespell
run: |
pip3 install codespell
- name: Check spelling
run: |
codespell --skip="assets,*.svg,bin" --quiet-level=2 -L "rouge,dropse,namd,hist"
check_lesson_and_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Install basic requirements
run: |
# Need this library for nokogiri
sudo apt-get install libxslt1-dev
gem install bundler json kramdown
bundle config set path '.vendor/bundle'
bundle config build.nokogiri --use-system-libraries
bundle install
- name: "Check lesson for warnings"
run: |
make lesson-check-all
- name: "Check lesson for errors"
run: |
make lesson-check
- name: "Check build"
run: |
make --always-make site