Init github actions

This commit is contained in:
kagami 2023-12-08 18:04:37 +08:00
parent 4e565fab0f
commit 9f6e19ba78

27
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Dev CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
lint-and-test:
name: Run lint and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11.4"
- name: install workflows-command dependencies
run: |
pip install -r requirements.txt
- name: install dev dependencies
run: |
pip install -r requirements-dev.txt
- name: run check
run: |
ruff check .
ruff format . --check