-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 912 Bytes
/
doctest.yml
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
name: Doctest
on:
push:
schedule:
- cron: "0 2 * * 1" # The task runs at 2 a.m. every Monday.
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 2
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.x"]
name: Python ${{ matrix.python-version }} ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip pytest
python -m pip install -e .
- name: Install weasyprint on macos-latest
if: runner.os == 'macOS'
run: |
brew install weasyprint
- name: Run pytest on Linux🐧, macOS🍎
env:
PYTHONPATH: src
run: |
python -m pytest --doctest-modules