Skip to content

Commit

Permalink
Custom test run for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Nov 29, 2023
1 parent 8b88837 commit dbd3e1b
Showing 1 changed file with 30 additions and 17 deletions.
47 changes: 30 additions & 17 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,48 @@ jobs:
if: runner.os == 'macOS'
run: brew install hdf5

- name: Set up Python ${{ matrix.python-version }}
if: runner.os == 'Windows'
uses: actions/setup-python@v4
# Helps set up VTK with a headless display
- uses: pyvista/setup-headless-display-action@v2

# Sets up ffmpeg to we can run video tests on CI
- uses: FedericoCarboni/setup-ffmpeg@v2
id: setup-ffmpeg

# Run tests
- uses: neuroinformatics-unit/actions/test@v2
if: runner.os != 'Windows'
with:
python-version: ${{ matrix.python-version }}

- name: Setup Conda
# Windows custom steps
- name: Setup Conda on Windows
if: runner.os == 'Windows'
uses: s-weigand/setup-conda@v1
with:
python-version: ${{ matrix.python-version }}

- name: Change Conda solver
- name: Change Conda solver and install Pyside2
if: runner.os == 'Windows'
run: conda config --set solver libmamba
run: |
conda config --set solver libmamba
conda install -c conda-forge pyside2 --yes
- name: Install pyside2 for Windows
- uses: actions/checkout@v3
if: runner.os == 'Windows'
run: conda install -c conda-forge pyside2 --yes

# Helps set up VTK with a headless display
- uses: pyvista/setup-headless-display-action@v2
- name: Install tox
if: runner.os == 'Windows'
run: |
pip install tox
tox --version
# Sets up ffmpeg to we can run video tests on CI
- uses: FedericoCarboni/setup-ffmpeg@v2
id: setup-ffmpeg
- name: Run tests
if: runner.os == 'Windows'
run: tox

# Run tests
- uses: neuroinformatics-unit/actions/test@v2
with:
python-version: ${{ matrix.python-version }}
- name: Report coverage to codecov
if: runner.os == 'Windows'
uses: codecov/codecov-action@v3

build_sdist_wheels:
name: Build source distribution
Expand Down

0 comments on commit dbd3e1b

Please sign in to comment.