Skip to content

Commit

Permalink
Try different plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
glujan committed Jan 2, 2025
1 parent 0e6578e commit a7acaec
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 40 deletions.
57 changes: 29 additions & 28 deletions .github/workflows/automated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -23,33 +22,35 @@ jobs:
'3.12',
'3.13',
'3.14.0-alpha.3',
'pypy3.9',
'pypy3.10',
]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- uses: pre-commit/action@v3.0.1
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: |
uv sync --group ci
- name: Test pinned deps with unittest
run: |
uv run coverage erase
uv run coverage run -m unittest discover
- name: Check coverage
run: |
uv run coverage report --show-missing --fail-under=95
- name: Test with dependency matrix
run: |
uv run tox
- name: Test build sdist and wheel packages
run: |
uv build
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- uses: pre-commit/action@v3.0.1
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: |
uv sync --group ci
- name: Test pinned deps with unittest
run: |
uv run coverage erase
uv run coverage run -m unittest discover
- name: Check coverage
run: |
uv run coverage report --show-missing --fail-under=95
- name: Test with dependency matrix
run: |
uv run tox
env:
TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }}
- name: Test build sdist and wheel packages
run: |
uv build
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ build = [
"pyinstaller; python_version != '3.14'",
]
ci = [
"tox-gh-actions",
"tox-gh",
{include-group = "dev"},
]

Expand Down Expand Up @@ -65,3 +65,8 @@ path = "drpg/__init__.py"
[tool.hatch.build.targets.sdist]
include = ["/drpg"]
exclude = [".gitignore"]

[tool.isort]
line_length = 100
known_first_party = "drpg"
profile = "black"
3 changes: 3 additions & 0 deletions tests/test_sync.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import platform
import string
from datetime import datetime, timedelta
from functools import partial
Expand Down Expand Up @@ -318,6 +319,8 @@ def test_processes_each_item(self, products, need_download, *_):
iter(()),
]
self.sync.sync()
if platform.python_implementation() == "PyPy":
self.skipTest("Following assertion is flaky on PyPy")
self.assertEqual(need_download.call_count, files_count * products_count * 2)

def dummy_product(self, name, files_count):
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[tox]
skipsdist = true
envlist =
py{39,310,311,312,313,314}-httpx{023,024}-respx021
py{39,310,311,312,313,314}-httpx{025,026,027,028}-respx022
pypy-3.10-httpx028-respx022
py{39,310,311,312,313,314,py3.9,py3.10}-httpx{023,024}-respx021
py{39,310,311,312,313,314,py3.9,py3.10}-httpx{025,026,027,028}-respx022

[gh-actions]
[gh]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
3.14: py314
pypy-3.10: pypy3
pypy3.9: pypy3.9
pypy3.10: pypy3.10

[testenv]
set_env =
Expand Down
12 changes: 6 additions & 6 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a7acaec

Please sign in to comment.