41 lines (41 loc) · 1.17 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
name: Linting 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