Skip to content

Commit

Permalink
Test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneLightsOn committed Sep 13, 2024
1 parent ea72b5a commit 81a67c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/python-typecheck-new-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@ jobs:
- run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.11'
cache: 'poetry'
- run: poetry install
- run: |
echo "AAA: $(poetry env info --path)/bin"
- run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
- name: Get new files added in the PR
id: get_new_files
run: |
git fetch origin main
NEW_PY_FILES=$(git diff --name-only --diff-filter=A origin/main HEAD | grep '\.py$' | tr '\n' ' ')
echo "New files: $NEW_PY_FILES"
echo "New PATH: $(poetry env info --path)/bin"
echo "new_py_files=$NEW_PY_FILES" >> $GITHUB_OUTPUT
- name: Typecheck new files
uses: jakebailey/pyright-action@v2
Expand Down

0 comments on commit 81a67c5

Please sign in to comment.