-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (36 loc) · 826 Bytes
/
python-style.yml
File metadata and controls
38 lines (36 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Python Style
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
lint:
name: ${{ matrix.session }}
runs-on: ubuntu-latest
strategy:
matrix:
session: [ruff, mypy]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Create uv virtual environment
run: |
cd crackers_python
uv venv
- name: Install dev dependencies
run: |
cd crackers_python
uv pip install -e .[dev]
- name: Run nox session
run: |
cd crackers_python
uv run nox -s ${{ matrix.session }}