Dioptas/.github/workflows/CI_frontend.yml

59 lines
2.5 KiB
YAML

# This is a basic workflow to help you get started with Actions
name: CI_frontend
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
env:
QT_QPA_PLATFORM: offscreen
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install poetry
run: pip install poetry
- name: Setup Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'poetry'
- name: Install Apt Dependencies
run: |
sudo apt-get update
sudo apt-get install python3-opengl libgl1-mesa-dev libglib2.0-0 libxkbcommon-x11-dev libxcb-xinerama0 \
libxcb-keysyms1-dev libxcb-image0-dev libxcb-icccm4-dev libxcb-sync0-dev libxcb-xfixes0-dev \
libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-cursor0 libopengl0
- name: Install poetry dependencies
run: poetry install
- name: Install pyepics
run: poetry run pip install pyepics
- name: Run tests
run: |
poetry run py.test dioptas/tests/controller_tests/test_MainController.py
poetry run py.test dioptas/tests/controller_tests/test_BackgroundController.py
poetry run py.test dioptas/tests/controller_tests/test_CalibrationController.py
poetry run py.test dioptas/tests/controller_tests/test_ConfigurationController.py
poetry run py.test dioptas/tests/controller_tests/test_CorrectionController.py
poetry run py.test dioptas/tests/controller_tests/test_EpicsController.py
poetry run py.test dioptas/tests/controller_tests/test_ImageController.py
poetry run py.test dioptas/tests/controller_tests/test_IntegrationBackgroundController.py
poetry run py.test dioptas/tests/controller_tests/test_IntegrationController.py
poetry run py.test dioptas/tests/controller_tests/test_JcpdsEditorController.py
poetry run py.test dioptas/tests/controller_tests/test_MaskController.py
poetry run py.test dioptas/tests/controller_tests/test_MapController2.py
poetry run py.test dioptas/tests/controller_tests/test_OptionsController.py
poetry run py.test dioptas/tests/controller_tests/test_OverlayController.py
poetry run py.test dioptas/tests/controller_tests/test_PatternController.py
poetry run py.test dioptas/tests/controller_tests/test_PhaseController.py
poetry run py.test dioptas/tests/controller_tests/test_PhaseInCakeController.py
poetry run py.test dioptas/tests/controller_tests/test_PhaseInPatternController.py