Skip to content

DOC

DOC #18

name: Tests
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file env-dev.yml --name base
sudo apt-get update
sudo apt-get install -y xvfb
- name: build Eelbrain
run: |
pip install -e .
- name: Start virtual display
run: |
Xvfb :99 -screen 0 1024x768x16 &
export DISPLAY=:99
- name: Test with pytest
env:
DISPLAY: :99
run: |
pytest --cov --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}