Merge pull request #9 from Kotochleb/feature/modality-cleaning #48
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
name: Tests & Coverage | |
on: [ push, pull_request ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
strategy: | |
matrix: | |
python-version: [ "3.9" ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Setup conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: pym3t | |
environment-file: environment.yaml | |
python-version: ${{ matrix.python-version }} | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
use-mamba: true | |
- name: Install EGL | |
run: sudo apt-get update && sudo apt-get install -qqy libegl1-mesa libegl1-mesa-dev | |
- name: Install pym3t | |
run: | | |
pip install . | |
- name: Run tests | |
run: | | |
pip install pytest | |
python -m pytest tests/ |