Skip to content

Commit 779874e

Browse files
authored
Merge pull request #18 from matagus/readme-typos-and-ci-action-perf-improvement
Readme typos and CI action perf improvement
2 parents ed3538c + bb6a880 commit 779874e

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,24 @@ jobs:
3838
uses: actions/setup-python@v6
3939
with:
4040
python-version: ${{ matrix.python-version }}
41-
- name: Install dependencies
41+
- name: Install uv
42+
uses: astral-sh/setup-uv@v4
43+
with:
44+
enable-cache: true
45+
cache-dependency-glob: "pyproject.toml"
46+
- name: Cache hatch environments
47+
uses: actions/cache@v4
48+
with:
49+
path: |
50+
~/.local/share/hatch
51+
~/.cache/hatch
52+
key: hatch-${{ runner.os }}-py${{ matrix.python-version }}-django${{ matrix.django-version }}-${{ hashFiles('pyproject.toml') }}
53+
restore-keys: |
54+
hatch-${{ runner.os }}-py${{ matrix.python-version }}-django${{ matrix.django-version }}-
55+
hatch-${{ runner.os }}-py${{ matrix.python-version }}-
56+
- name: Install hatch with uv
4257
run: |
43-
python -m pip install --upgrade hatch
58+
uv tool install hatch
4459
- name: Run tests for Python ${{ matrix.python-version }} and Django ${{ matrix.django-version }} on ${{ matrix.os }} with coverage report
4560
run: |
4661
hatch run test.py${{ matrix.python-version }}-${{ matrix.django-version }}:cov

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# django-admin-contexts
22

3-
![Python Compatibility](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue.svg)
3+
![Python Compatibility](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue.svg)
44
![Django Compatibility](https://img.shields.io/badge/django-4.2%20|%205.0%20|%205.1%20|%205.2-%2344B78B?labelColor=%23092E20)
55
[![PyPi Version](https://img.shields.io/pypi/v/django-admin-contexts.svg)](https://pypi.python.org/pypi/django-admin-contexts)
66
![CI badge](https://github.com/matagus/django-admin-contexts/actions/workflows/ci.yml/badge.svg)
@@ -101,7 +101,7 @@ Please read [Contributing.md](CONTRIBUTING.md) for detailed instructions on how
101101
License
102102
=======
103103

104-
`django-admin-contexts` is released under an BSD License - see the `LICENSE` file for more information.
104+
`django-admin-contexts` is released under a BSD License
105105

106106

107107
Acknowledgements

0 commit comments

Comments
 (0)