Skip to content

Commit bbf3691

Browse files
authored
Update continuous integration checks (#169)
* Add GitHub Actions * Update ci.yml
1 parent c6d9717 commit bbf3691

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- src
7+
pull_request:
8+
workflow_dispatch:
9+
schedule:
10+
- cron: 37 7 * * 1
11+
12+
jobs:
13+
test-build:
14+
name: ${{ matrix.name }}
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
19+
matrix:
20+
include:
21+
22+
- name: Build website
23+
python: '3.12'
24+
nox_session: build
25+
26+
- name: Perform Nikola checks
27+
python: '3.12'
28+
nox_session: check
29+
30+
steps:
31+
- name: Checkout code
32+
uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0
35+
36+
- name: Set up Python
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: ${{ matrix.python }}
40+
cache: pip
41+
42+
- name: Install Nox and uv
43+
run: python -m pip install --progress-bar off --upgrade nox uv
44+
45+
- name: Run Nox session
46+
run: nox -s build

0 commit comments

Comments
 (0)