FIX : avoid dividing by 0 #137
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: | |
- uses: actions/checkout@v3 | |
- name: create env file | |
run: | | |
touch .env | |
echo ROOT_FOLDER=${{ secrets.ROOT_FOLDER }} >> .env | |
echo DASH_ENV=${{ secrets.DASH_ENV }} >> .env | |
touch version.env | |
echo VERSION=test >> version.env | |
- 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: | | |
pytest dash_test/test_integration.py | |
- name: Test unit_zooscan_acquisition with pytest | |
run: | | |
pytest dash_test/test_unit_zooscan_acquisition.py | |
- name: Test unit_zooscan_multiples with pytest | |
run: | | |
pytest dash_test/test_unit_zooscan_multiples.py | |
- name: Test unit_zooscan_process with pytest | |
run: | | |
pytest dash_test/test_unit_zooscan_process.py |