Skip to content

Commit 675f5e1

Browse files
committed
feat: create linting and testing workflow
1 parent 9409413 commit 675f5e1

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/test-lint.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: test-lint
2+
on: [push]
3+
jobs:
4+
uv-pylint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Install uv
9+
uses: astral-sh/setup-uv@v3
10+
with:
11+
version: "0.5.2"
12+
- name: Set up Python
13+
run: uv python install
14+
- name: Install the project
15+
run: uv sync --all-extras --dev
16+
- name: Run tests
17+
run: uv run pytest tests/test_extension.py
18+
- name: Run Ruff linter
19+
run: uv run ruff check ./

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "flask-template-refs"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
description = "Flask extension that creates template references, enabling simple access to templates with dot notation and auto-completion."
55
authors = [
66
{ name = "LouisCoutel", email = "louiscoutel75@gmail.com" }

0 commit comments

Comments
 (0)