Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit 88234dd

Browse files
committed
run CI via GitHub Actions
1 parent 73f9754 commit 88234dd

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/test_and_build.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Check lesson and build for all configs
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- gh-pages
8+
9+
jobs:
10+
spellcheck:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.7
18+
- name: Install codespell
19+
run: |
20+
pip3 install codespell
21+
- name: Check spelling
22+
run: |
23+
codespell --skip="assets,*.svg,bin" --quiet-level=2 -L "rouge,dropse,namd,hist"
24+
25+
check_lesson_and_build:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: actions/setup-ruby@v1
30+
with:
31+
ruby-version: '2.7'
32+
- name: Install basic requirements
33+
run: |
34+
# Need this library for nokogiri
35+
sudo apt-get install libxslt1-dev
36+
gem install bundler json kramdown
37+
bundle config set path '.vendor/bundle'
38+
bundle config build.nokogiri --use-system-libraries
39+
bundle install
40+
- name: "Check lesson for warnings"
41+
run: |
42+
make lesson-check-all
43+
- name: "Check lesson for errors"
44+
run: |
45+
make lesson-check
46+
- name: "Check build"
47+
run: |
48+
make --always-make site

0 commit comments

Comments
 (0)