Skip to content

Simple GUI test for CI #1022

Simple GUI test for CI

Simple GUI test for CI #1022

Workflow file for this run

name: test
on:
push:
branches:
- main
- dev
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request: # run CI on commits to any open PR
workflow_dispatch: # can manually trigger CI from GitHub actions tab
jobs:
test:
name: ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment_cpu.yaml
# Setup Qt libraries for GUI testing
- uses: tlambert03/setup-qt-libs@v1
- name: Install pytest
shell: bash -l {0}
run: |
python -m pip install pytest
python -m pip install pytest-cov
- name: Install package
uses: aganders3/headless-gui@v1
with:
shell: bash -l {0}
run: pip install --no-deps -e .
- name: Run tests
shell: bash -l {0}
run: pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
verbose: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}