Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
crabhi committed Feb 26, 2024
1 parent 199934b commit 8b8f51e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 14 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Python package

on: [push]

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
django-version: ["4", "5"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml

- name: Install dependencies
run: pip install -e ".[dev]" Django==${{ matrix.django-version}}

- name: Test
run: pytest
working-directory: testsite
35 changes: 21 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
[tool.poetry]
[project]
name = "django-sql-tagger"
version = "0.1.0"
description = "Adds a comment to SQL queries pointing to their place of origin"
authors = ["Filip Sedlák <[email protected]>"]
license = "GPL3"
authors = [{name= "Filip Sedlák", email = "[email protected]"}]
readme = "README.md"
packages = [{include = "django_sql_tagger"}]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GPLv3 License",
"Operating System :: OS Independent",
]
dependencies = ["Django>=4,<6"]

[tool.poetry.dependencies]
python = ">=3.10,<4"
django = ">=4,<6"
[project.optional-dependencies]
dev = [
"ipython~=8.22.0",
"pytest~=8.0.1",
"pytest-django~=4.8.0",
]


[tool.poetry.group.dev.dependencies]
ipython = "^8.22.0"
pytest = "^8.0.1"
pytest-django = "^4.8.0"
[project.urls]
Homepage = "https://github.com/monitora-media/django-sql-tagger"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["django_sql_tagger"]

0 comments on commit 8b8f51e

Please sign in to comment.