fix: add Katharina Wolff and Arush Baijal as an author in the OMIO pr… #135
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: 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 |