Skip to content

Commit

Permalink
[ci] check job
Browse files Browse the repository at this point in the history
  • Loading branch information
NextFire committed Oct 29, 2023
1 parent 2f5766c commit e2c7891
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: ["main", "renovate/*"]
# Publish semver tags as releases.
tags: ["v*.*.*"]
pull_request:
branches: ["main"]
workflow_dispatch:

jobs:
check:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/heads/')
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- uses: actions/setup-python@v3
with:
python-version: 3.11
- name: poetry install
run: |
pip install poetry
poetry install
- run: poetry run pyright
env:
PYRIGHT_PYTHON_FORCE_VERSION: latest
- run: poetry run ruff check yohane/
if: always()
50 changes: 49 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ regex = "^2023.10.3"
click = "^8.1.7"

[tool.poetry.group.dev.dependencies]
pyright = "^1.1.333"
ruff = "^0.1.3"
ipykernel = "^6.26.0"

Expand Down

0 comments on commit e2c7891

Please sign in to comment.