Skip to content

Commit

Permalink
ci: Fixes (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert authored Jan 13, 2025
1 parent b4e8d8e commit d3ca4d5
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 101 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pylint poetry
poetry export -o requirements.txt
pip install -r requirements.txt
- run: pipx install poetry black flake8 pylint
- uses: actions/setup-python@v5
with:
python-version: ">=3.11"
cache: poetry
- run: poetry install
- name: Prepare artifacts directory
run: |
mkdir -p ./linter_output
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/lintly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Process linter results
# access to secrets
on:
workflow_run:
workflows: ["Linter"]
workflows: ["Lint"]
types:
- completed

Expand All @@ -15,20 +15,18 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v4
- uses: actions/download-artifact@v4
id: download
with:
name: linter_output
path: "${{github.workspace}}/linter_output.zip"
- run: unzip ${{steps.download.outputs.download-path}}
- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: ">=3.11"
cache: pip
# pinned to lintly 0.5.0 due to https://github.com/grantmcconnaughey/Lintly/issues/41
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install lintly==0.5.0 markupsafe==2.0.1
- run: pipx install lintly==0.5.0 markupsafe==2.0.1
- name: "Comment on PR"
run: |
lintly --format=flake8 \
Expand Down
Loading

0 comments on commit d3ca4d5

Please sign in to comment.