Restored python3.9 to the CI workflow. #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- 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: Install DnD LaTeX styles | |
run: | | |
echo "$(kpsewhich -var-value TEXMFHOME)/tex/latex/" | |
mkdir -p "$(kpsewhich -var-value TEXMFHOME)/tex/latex/" | |
git clone https://github.com/rpgtex/DND-5e-LaTeX-Template.git "$(kpsewhich -var-value TEXMFHOME)/tex/latex/dnd" | |
- 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/ |