Skip to content

Commit

Permalink
GIT: refactored actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rpartzsch committed Jan 18, 2025
1 parent 206b167 commit bec3f3e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/pre_commit.yml

This file was deleted.

27 changes: 18 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
name: Tests

on:
pull_request:
push:
branches: [main, ui_tests]

jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Tests
run: |
pip install -e .[test]
pytest -sv
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.1


pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- run: |
pip install -e .[test]
pytest -sv
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Motor stage UI
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) ![Tests](https://github.com/SiLab-Bonn/motor_stage_ui/tree/ui_tests/.github/tests/badge.svg) ![pre-commit](https://github.com/SiLab-Bonn/motor_stage_ui/tree/ui_tests/.github/pre_commit/badge.svg)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

[![Status](https://github.com/SiLab-Bonn/motor_stage_ui/tree/ui_tests/.github/workflows/Tests/badge.svg)](https://github.com/SiLab-Bonn/motor_stage_ui/actions)

Offers both a terminal and graphical user interface for the [C-863 Mercury controller](https://www.le.infn.it/~chiodini/allow_listing/pi/Manuals/C-863_UserManual_MS205E200.pdf) (Check also the [commands](https://twiki.cern.ch/twiki/bin/viewfile/ILCBDSColl/Phase2Preparations?rev=1;filename=MercuryNativeCommands_MS176E101.pdf)).
Motor stages can be arranged in daisy chains.
Expand Down Expand Up @@ -62,7 +64,7 @@ The step size of a specific stage is given in um for translation stages and deg

## Tests

General UI tests, utilizing a motor controller mock, are performed when setting the environmental variable 'TEST' e.g.:
General UI tests, utilizing a motor controller mock, are performed when setting the environmental variable `TEST` e.g.:

```bash
TEST=True motor init x_axis
Expand Down

0 comments on commit bec3f3e

Please sign in to comment.