Skip to content

Commit

Permalink
feat: create linting and testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCoutel committed Nov 20, 2024
1 parent 9409413 commit 675f5e1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: test-lint
on: [push]
jobs:
uv-pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.5.2"
- name: Set up Python
run: uv python install
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests
run: uv run pytest tests/test_extension.py
- name: Run Ruff linter
run: uv run ruff check ./
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "flask-template-refs"
version = "0.1.0"
version = "0.2.0"
description = "Flask extension that creates template references, enabling simple access to templates with dot notation and auto-completion."
authors = [
{ name = "LouisCoutel", email = "louiscoutel75@gmail.com" }
Expand Down

0 comments on commit 675f5e1

Please sign in to comment.