Add fluence rate option. #13
Workflow file for this run
This file contains hidden or 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: Test Coverage | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Linux packages for Qt5/Qt6 support and start Xvfb | |
uses: pyvista/setup-headless-display-action@v3 | |
with: | |
qt: true | |
- name: Linux OpenCL support | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y pocl-opencl-icd ocl-icd-opencl-dev gcc clinfo | |
clinfo | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[dev] | |
- name: Run tests with coverage | |
env: | |
PTO_CI_MODE: 1 | |
run: | | |
pytest -v --cov=pytissueoptics --cov-report=xml --cov-report=html | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v4 |