Skip to content

Commit

Permalink
chore: move to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
shulcsm committed Dec 9, 2024
1 parent 15d31d9 commit 9e67afc
Show file tree
Hide file tree
Showing 25 changed files with 354 additions and 822 deletions.
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

43 changes: 18 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- master
- master
pull_request:

jobs:
Expand Down Expand Up @@ -32,35 +32,28 @@ jobs:
strategy:
matrix:
python-version:
- '3.6'
- '3.8'
- '3.9'
- '3.10'
- "3.8"
- "3.9"
- "3.10"

defaults:
run:
shell: bash
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Get full Python version
id: full-python-version
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install the project
run: uv sync --all-extras --dev

- name: Upgrade packaging tools
run: python -m pip install --upgrade pip setuptools virtualenv wheel

- name: Install dependencies
run: python -m pip install --upgrade codecov tox tox-py

- name: Run tox targets for ${{ matrix.python-version }}
run: tox --py current
- name: Run tests
# For example, using `pytest`
run: uv run pytest test
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Requirements
==============

* Postgres 9.5+
* Python 3.6+
* Django 3.2+
* Python 3.8+
* Django 4+


Installation
Expand Down
Loading

0 comments on commit 9e67afc

Please sign in to comment.