-
Notifications
You must be signed in to change notification settings - Fork 27
41 lines (38 loc) · 1.01 KB
/
python-package-conda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 }}