mirror of
https://github.com/nikdoof/smsbot.git
synced 2025-12-14 18:42:15 +00:00
Update github workflows for uv
This commit is contained in:
10
.github/workflows/lint.yaml
vendored
10
.github/workflows/lint.yaml
vendored
@@ -1,12 +1,10 @@
|
||||
name: Lint
|
||||
name: Run Lint
|
||||
|
||||
"on":
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- "main"
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
@@ -20,12 +18,12 @@ jobs:
|
||||
uses: arduino/setup-task@v2
|
||||
with:
|
||||
version: 3.x
|
||||
- name: Setup Python
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v6
|
||||
- name: Lint with ruff
|
||||
- name: Run Lint
|
||||
run: |
|
||||
task python:lint
|
||||
|
||||
29
.github/workflows/tests.yaml
vendored
Normal file
29
.github/workflows/tests.yaml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Run Tests
|
||||
|
||||
"on":
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
pytest:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.9"]
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@v2
|
||||
with:
|
||||
version: 3.x
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v6
|
||||
- name: Run Tests
|
||||
run: |
|
||||
task python:tests
|
||||
Reference in New Issue
Block a user