2024-02-20 08:34:56 +01:00
|
|
|
name: check code
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main, master]
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
branches: [main, master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-code:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout code
|
2024-02-20 20:14:41 +01:00
|
|
|
uses: actions/checkout@v4
|
2024-02-20 08:34:56 +01:00
|
|
|
|
|
|
|
- uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version: "3.11"
|
|
|
|
|
|
|
|
- name: install hatch
|
|
|
|
run: pip install -U hatch
|
|
|
|
|
|
|
|
- name: test codestyle
|
|
|
|
run: hatch run lint:style
|
|
|
|
|
|
|
|
- name: test typing
|
|
|
|
run: hatch run lint:typing
|