Skip to content

Commit

Permalink
ci: fix test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jun 22, 2022
1 parent 8871f2b commit 750e8d2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry wheel
python -m pip install --upgrade pip wheel
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - --preview
# Install wxPython wheels since they are distribution-specific and therefore not on PyPI
# See: https://wxpython.org/pages/downloads/index.html
Expand All @@ -29,7 +30,7 @@ jobs:
- name: Build docs
run: |
cd doc && poetry run make html
cd doc && make html
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,25 @@ jobs:
# freeglut3-dev is a requirement for a wxPython dependency
sudo apt-get -y install xvfb libgtk-3-dev freeglut3-dev
- name: Install poetry
run: |
python -m pip install --upgrade pip wheel
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - --preview
poetry config virtualenvs.create false
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry wheel
poetry install
- name: Run eegnb install test
shell: bash
poetry run pip install -U psychtoolbox # JG_ADD
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
Xvfb :0 -screen 0 1024x768x24 -ac +extension GLX +render -noreset &> xvfb.log &
export DISPLAY=:0
fi
poetry run eegnb --help
poetry run runexp --help
eegnb --help
eegnb runexp --help
- name: Run examples with coverage
shell: bash
Expand All @@ -73,7 +77,7 @@ jobs:
Xvfb :0 -screen 0 1024x768x24 -ac +extension GLX +render -noreset &> xvfb.log &
export DISPLAY=:0
fi
poetry run pytest
pytest
typecheck:
runs-on: ${{ matrix.os }}
Expand All @@ -89,6 +93,7 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}

- name: Install APT dependencies
if: "startsWith(runner.os, 'Linux')"
run: |
Expand All @@ -98,11 +103,18 @@ jobs:
# libgtk-3-dev is a requirement for wxPython
# freeglut3-dev is a requirement for a wxPython dependency
sudo apt-get -y install xvfb libgtk-3-dev freeglut3-dev
- name: Install poetry
run: |
python -m pip install --upgrade pip wheel
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - --preview
poetry config virtualenvs.create false
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel poetry
poetry install
- name: Typecheck
run: |
# Exclude visual_cueing due to errors
poetry run mypy --exclude 'examples/visual_cueing'
mypy --exclude 'examples/visual_cueing'

0 comments on commit 750e8d2

Please sign in to comment.