forked from eugeniughelbur/obsidian-second-brain
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 998 Bytes
/
Copy pathci.yml
File metadata and controls
31 lines (28 loc) · 998 Bytes
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
name: CI
on:
push:
branches: [main]
pull_request:
# Least-privilege: this workflow only reads the repo to run tests.
permissions:
contents: read
jobs:
smoke:
name: Smoke tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.11"
# build.sh is pure bash and vault_health.py is stdlib-only, but the
# free-research source library imports `requests`, so install that too.
- name: Install test dependencies
run: python -m pip install --upgrade pip pytest requests
- name: Run smoke tests
run: pytest -q
# Fail the build if a banned substitution character (em-dash, curly quote,
# Unicode math, ...) appears in prose in any tracked source file. Characters
# inside code fences / backtick spans are preserved and never fail.
- name: Lint substitution characters
run: python scripts/sweep_non_ascii.py --check