-
Notifications
You must be signed in to change notification settings - Fork 11
50 lines (42 loc) · 1.31 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
name: New pull request received
on:
pull_request:
workflow_dispatch:
inputs:
git_rev:
description: "git revision"
required: false
default: ""
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@main
with:
fetch-depth: 0
ref: "${{ github.event.inputs.git_rev }}"
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install -U pip pipenv
pipenv install --dev
- name: Run linters and checks through pre-commit
run: |
pipenv run inv setup-pre-commit-hooks
pipenv run inv run-pre-commit
- name: Check whether pelican local pages is buildable
run: |
pipenv run inv build
- name: Check whether pelican public pages is buildable
run: |
pipenv run inv build-publish