DEV - PDF formating #101
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
python-version: ["3.8"] | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- uses: nanasess/setup-chromedriver@v2 | |
- run: | | |
export DISPLAY=:99 | |
chromedriver --url-base=/wd/hub & | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest dash[testing] | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Test integration with pytest | |
run: | | |
DASH_ENV=TEST pytest dash_test/test_integration.py | |
- name: Test unit_zooscan_acquisition with pytest | |
run: | | |
DASH_ENV=TEST pytest dash_test/test_unit_zooscan_acquisition.py | |
- name: Test unit_zooscan_multiples with pytest | |
run: | | |
DASH_ENV=TEST pytest dash_test/test_unit_zooscan_multiples.py | |
- name: Test unit_zooscan_process with pytest | |
run: | | |
DASH_ENV=TEST pytest dash_test/test_unit_zooscan_process.py |