Skip to content

Link to Nelsie, deprecation note #179

Link to Nelsie, deprecation note

Link to Nelsie, deprecation note #179

Workflow file for this run

name: Check
on:
push:
branches:
- master
pull_request:
branches:
- master
- dev
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo add-apt-repository ppa:inkscape.dev/stable
sudo apt-get update
sudo apt-get install -y --no-install-recommends inkscape=1:1.1+202202050950+0a00cf5339~ubuntu20.04.1 poppler-utils
python -m pip install --upgrade pip wheel setuptools
python -m pip install -r requirements-dev.txt
python -m pip install .[cairo]
- name: Test
run: pytest tests
- name: Archive test artifacts
uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: pytest results
path: /tmp/pytest-*
- name: Build examples
run: ./examples/build-examples.sh
- name: Lint
run: flake8 elsie tests
- name: Format
run: black --check elsie tests
docs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
sudo add-apt-repository ppa:inkscape.dev/stable
sudo apt-get update
sudo apt-get install -y --no-install-recommends inkscape=1:1.1+202202050950+0a00cf5339~ubuntu20.04.1
python -m pip install --upgrade pip wheel setuptools
python -m pip install -r requirements-dev.txt
python -m pip install .[cairo]
python -m pip install docs/mkdocs-elsie-plugin
python -m pip install docs/mkdocs-nedoc-plugin
- name: Build API documentation
run: |
python -m nedoc build
cp -r apidoc docs
- name: Build documentation
run: mkdocs build