2022-04-02 21:27:19 +03:00
|
|
|
name: Test if the site builds
|
2022-03-11 17:47:54 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: [3.8]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
2022-04-02 21:27:19 +03:00
|
|
|
- name: Install requirements
|
2022-03-11 17:47:54 +02:00
|
|
|
run: |
|
2022-04-02 21:27:19 +03:00
|
|
|
pip install -r requirements.txt
|
2022-03-11 17:47:54 +02:00
|
|
|
|
2022-04-02 21:27:19 +03:00
|
|
|
- name: Build static site
|
2022-03-11 17:47:54 +02:00
|
|
|
run: |
|
2022-04-02 21:27:19 +03:00
|
|
|
python3 scripts/blog static
|