Skip to content

Commit

Permalink
Merge pull request #70 from DemocracyClub/hotfix/fix-workflows
Browse files Browse the repository at this point in the history
Further updates for pypi release
  • Loading branch information
VirginiaDooley authored Apr 9, 2024
2 parents c9cda02 + d507365 commit 31ea7b5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Publish Python Package

on:
release:
types: [created]
types: [created, edited]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -20,6 +20,7 @@ jobs:
cache-dependency-path: '**/pyproject.toml'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e '.[test]'
- name: Run tests
run: |
Expand All @@ -35,7 +36,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.10'
cache: pip
cache-dependency-path: '**/pyproject.toml'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
25 changes: 24 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@ version = "2.6.0"
description = "This is a package to provide some common utilities for Django projects at Democracy Club."
readme = "README.md"
authors = [{name = "Sym Roe"}, {name = "Virginia Dooley"}]
dependencies = [
"django>=3.2,<4.3",
"black",
"curlylint",
"isort",
"ipdb",
"django-pipeline==2.1.0",
"markdown",
"django-localflavor==3.1",
"setuptools==65.5.1",
"pre-commit",
"djhtml",
"pytest",
"pytest-django",
"pytest-mock",
"pytest-flakes",
"pytest-ruff",
"pytidylib",
"dc_design_system @ https://github.com/DemocracyClub/design-system/archive/refs/tags/0.4.6.tar.gz",
"whitenoise",
"pysass",
"jsmin<3.1",
]

[project.urls]
Homepage = "https://github.com/DemocracyClub/dc_django_utils"
Expand All @@ -18,4 +41,4 @@ build-backend = "setuptools.build_meta"
line-length = 80

[project.optional-dependencies]
test = ["pytest"]
test = ["pytest", "pytest-flakes"]

0 comments on commit 31ea7b5

Please sign in to comment.