chore(examples): Add simple README w instructions #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Basic CI setup (installation, style checks, tests) | |
on: [push] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.10', '3.11', '3.12', '3.x'] | |
name: Python ${{ matrix.python-version }} pipeline | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install package and dev dependencies | |
run: | | |
pip install '.[dev]' | |
- name: Check style of package | |
run: pre-commit run --all | |
- name: Check Git commit messages | |
run: pre-commit run --hook-stage manual gitlint-ci | |
- name: Run tests | |
run: pytest --junit-xml=junit-reports/test_results.xml tests | |
- name: Upload Test Results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Test Results (Python ${{ matrix.python-version }}) | |
path: junit-reports/test_results.xml | |
- name: Check 'fret-to-robot' command transforms without errors | |
run: | | |
cd examples/digital_microscope/assets/ | |
fret-to-robot req_fret.json |