-
Notifications
You must be signed in to change notification settings - Fork 69
43 lines (40 loc) · 1.16 KB
/
Copy pathpython-ci.yml
File metadata and controls
43 lines (40 loc) · 1.16 KB
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
name: Python package
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up required system dependencies
run: |
sudo apt-get update
sudo apt-get -y install pdftk texlive-latex-base texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies and do a local pip install
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run flake
run: flake8 dungeonsheets/ --exit-zero
- name: Run tests
run: >
cd examples/;
makesheets --debug;
makesheets --debug --fancy;
makesheets --debug --output-format=epub;
cd ../;
pytest --cov=dungeonsheets tests/