-
-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (30 loc) · 802 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: CI
on:
push:
branches: ["main", "renovate/*"]
tags: ["*.*.*"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') != true
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/pyproject.toml', '**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: poetry install
run: |
pip install poetry
poetry install
- run: poetry run pyright sachi/
- run: poetry run ruff check sachi/
if: always()