Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
AiroPi committed Jan 13, 2025
1 parent 3763466 commit 58fe075
Showing 1 changed file with 12 additions and 26 deletions.
38 changes: 12 additions & 26 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,26 @@
name: lint

on:
workflow_dispatch:
# push:
# pull_request:
# types: [ opened, reopened, synchronize ]
# workflow_dispatch:
push:
pull_request:
types: [ opened, reopened, synchronize ]

jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.10', '3.x' ]

name: check ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up CPython ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
id: install-deps
run: |
pip install -U mypy flake8
pip install -U -r requirements.txt
- name: Run mypy
if: ${{ always() && steps.install-deps.outcome == 'success' }}
run: python3 -m mypy ./src/

- name: Run flake8
if: ${{ always() && steps.install-deps.outcome == 'success' }}
run: flake8 ./src/
path: 'python'
- name: Install latest version of uv
uses: astral-sh/setup-uv@v5
- name: Install tox
run: uv sync --only-group tox --frozen --python 3.13
- name: Run tox for python ${{ matrix.python-version }}
run: uv run tox -e py${{ matrix.python-version }}

0 comments on commit 58fe075

Please sign in to comment.