Skip to content

unfinished refactoring #24

unfinished refactoring

unfinished refactoring #24

Workflow file for this run

name: Python application
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.7]
env:
DISPLAY: ':99.0'
steps:
- name: setup ubuntu-latest xvfb
run: |
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/install-dependencies-and-qdevplot
- name: disable_telemetry
shell: bash -l {0}
run: sed -i "s/\(enabled *= *\).*/\1False/" ./qdevplot/conf/telemetry.ini
- name: Run Mypy
run: mypy qdevplot
- name: Test with pytest
run: |
pytest ./qdevplot/tests/
- uses: r-lib/actions/setup-pandoc@v1
with:
pandoc-version: '2.7.3' # The pandoc version to download (if necessary) and use.
- name: Build The Docs
shell: bash
run: |
cd docs &&
export SPHINXOPTS="-W -v" &&
make html
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_build/html # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch