-
Notifications
You must be signed in to change notification settings - Fork 58
58 lines (51 loc) · 1.57 KB
/
ci.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI
on:
push:
pull_request:
jobs:
run-tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-versions:
- '3.10'
- '3.11'
name: Test
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-versions }}
- name: Install Jekyll and Bundler
run: |
gem install jekyll bundler
bundle install
env:
JEKYLL_ENV: production
- name: Check broken links to pages
run: |
bundle exec htmlproofer _site \
--check-internal-hash \
--assume-extension \
--disable-external \
--enforce-https false \
--allow-missing-href true \
--ignore-missing-alt true
env:
JEKYLL_ENV: production
- name: Install Python dependencies
run: pip install -r ../tests/test_requirements.txt
- name: Build Jekyll site
run: bundle exec jekyll serve
env:
JEKYLL_ENV: production
- name: Run tests
run: pytest