Skip to content

Merge pull request #1 from ecotaxa/patch/name-in-readme #123

Merge pull request #1 from ecotaxa/patch/name-in-readme

Merge pull request #1 from ecotaxa/patch/name-in-readme #123

Workflow file for this run

# 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:
- name: create env file
run: |
touch .env
echo ROOT_FOLDER=${{ secrets.ROOT_FOLDER }} >> .env
echo DASH_ENV=${{ secrets.DASH_ENV }} >> .env
- 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: |
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