Skip to content

Feature/bus registration (#14) #27

Feature/bus registration (#14)

Feature/bus registration (#14) #27

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
code-style:
name: code-style
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: install poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
- name: checkout code
uses: actions/checkout@v2
- name: install package
run: poetry install
- name: ruff check
run: poetry run ruff check
- name: ruff format
run: poetry run ruff format --check
unit-test:
name: unit test
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: install poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
- name: checkout code
uses: actions/checkout@v2
- name: install package
run: poetry install
- name: ruff check
run: poetry run ruff check
- name: ruff format
run: poetry run ruff format --check
- name: pytest
run: poetry run pytest