Skip to content

Add CI

Add CI #4

Workflow file for this run

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