Added temperature sweeps for Oxford Triton cryostat #26
Workflow file for this run
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 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-measfunc | |
- name: disable_telemetry | |
shell: bash -l {0} | |
run: sed -i "s/\(enabled *= *\).*/\1False/" ./measfunc/conf/telemetry.ini | |
- name: Run Mypy | |
run: mypy measfunc | |
- name: Test with pytest | |
run: | | |
pytest ./measfunc/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/[email protected] | |
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 | |