Skip to content

docs: add error handling instructions for Thorlabs RAW files in usage… #119

docs: add error handling instructions for Thorlabs RAW files in usage…

docs: add error handling instructions for Thorlabs RAW files in usage… #119

Workflow file for this run

name: Run Python tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.12"
activate-environment: omio
auto-update-conda: true
miniforge-variant: Miniforge3
channels: conda-forge
conda-remove-defaults: true
- name: Install OMIO and test dependencies
run: |
source "$(conda info --base)/etc/profile.d/conda.sh"
conda activate omio
pip install .
pip install pytest pytest-cov coverage
- name: Debug OMIO import
run: |
source "$(conda info --base)/etc/profile.d/conda.sh"
conda activate omio
python -c "import omio; print('omio imported from:', omio.__file__)"
- name: Run tests
run: |
source "$(conda info --base)/etc/profile.d/conda.sh"
conda activate omio
pytest --cov=omio --cov-branch --cov-report=term --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml