Skip to content

Commit

Permalink
💚 Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
BalconyJH committed Jan 10, 2025
1 parent 3b426c4 commit e57e123
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ runs:
run: |
cd ${{ inputs.env-dir }}
install_cmd="pdm install -g"
install_cmd="pdm install"
if [ ! -z "${{ inputs.with-groups }}" ]; then
IFS=',' read -ra groups <<< "${{ inputs.with-groups }}"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/pyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ jobs:
env-dir: "."

- name: Run Pyright
uses: jakebailey/pyright-action@v2
with:
python-version: ${{ matrix.python-version }}
python-platform: "Linux"
extra-args: >-
${{ github.event.inputs.debug-mode == 'true' && '--warnings --verbose --level verbose' || '--warnings --verbose' }}
annotate: true
shell: bash
run: |
extra_args="${{ github.event.inputs.debug-mode == 'true' && '--warnings --verbose --level verbose' || '--warnings --verbose' }}"
pdm run pyright . $extra_args
53 changes: 52 additions & 1 deletion pdm.lock

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

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ keep-runtime-typing = true
[tool.pyright]
pythonVersion = "3.9"
pythonPlatform = "All"
venv = ".venv"
executionEnvironments = [
{ root = "./tests", extraPaths = [
"./",
Expand All @@ -92,6 +93,7 @@ test = [
"pytest-mock>=3.14.0",
]
dev = [
"pyright[nodejs]>=1.1.391",
"ruff>=0.8",
"pre-commit~=4.0",
"bump-my-version>=0.28.1",
Expand Down

0 comments on commit e57e123

Please sign in to comment.