@@ -10,16 +10,16 @@ jobs:
1010 check :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
14- - name : Set up Python 3.11
15- uses : actions/setup-python@v1
13+ - uses : actions/checkout@v4
14+
15+ - name : Install uv and set the python version
16+ uses : astral-sh/setup-uv@v5
1617 with :
1718 python-version : " 3.11"
18- - name : Install dependencies
19- run : python -m pip install --upgrade pip setuptools tox
19+
2020 - name : Run checks
2121 run : |
22- python -m tox --recreate -e check
22+ uv run tox --recreate -e check
2323 git diff --exit-code
2424
2525 test :
@@ -29,17 +29,16 @@ jobs:
2929 python-version : ["3.8", "3.9", "3.10", "3.11", "pypy-3.8", "pypy-3.9", "pypy-3.10"]
3030 fail-fast : false
3131 steps :
32- - uses : actions/checkout@v2
33- - name : Set up Python ${{ matrix. python-version }}
34- uses : actions /setup-python@v2
32+ - uses : actions/checkout@v4
33+ - name : Install uv and set the python version
34+ uses : astral-sh /setup-uv@v5
3535 with :
3636 python-version : ${{ matrix.python-version }}
37- - name : Install dependencies
38- run : python -m pip install --upgrade pip setuptools tox
37+
3938 - name : Run tests
4039 # Disable coverage on PyPy
4140 run : |
42- python -m tox --recreate -e test \
41+ uv run tox --recreate -e test \
4342 -- -n auto --durations=10 -k "not test_can_generate_for_real_large_schema" \
4443 $(${{ startsWith(matrix.python-version, 'pypy') }} && echo '--no-cov')
4544
@@ -50,32 +49,31 @@ jobs:
5049 python-version : ["3.8", "3.9", "3.10", "3.11"] # FIXME: these segfault PyPy
5150 fail-fast : false
5251 steps :
53- - uses : actions/checkout@v2
54- - name : Set up Python ${{ matrix. python-version }}
55- uses : actions /setup-python@v2
52+ - uses : actions/checkout@v4
53+ - name : Install uv and set the python version
54+ uses : astral-sh /setup-uv@v5
5655 with :
5756 python-version : ${{ matrix.python-version }}
58- - name : Install dependencies
59- run : python -m pip install --upgrade pip setuptools tox
6057 - name : Run slow tests
6158 run : |
62- python -m tox --recreate -e test \
59+ uv run tox --recreate -e test \
6360 -- -n auto --durations=10 --no-cov -k test_can_generate_for_real_large_schema
6461
6562 release :
6663 runs-on : ubuntu-latest
6764 needs : [check, test, test-slow]
6865 if : github.repository == 'python-jsonschema/hypothesis-jsonschema' && github.ref == 'refs/heads/master'
6966 steps :
70- - uses : actions/checkout@v2
71- - name : Set up Python 3.8
72- uses : actions /setup-python@v1
67+ - uses : actions/checkout@v4
68+ - name : Install uv and set the python version
69+ uses : astral-sh /setup-uv@v5
7370 with :
74- python-version : 3.8
75- - name : Install tools
76- run : python -m pip install --upgrade pip setuptools wheel twine
71+ python-version : " 3.8"
7772 - name : Upload new release
7873 env :
7974 TWINE_USERNAME : ' __token__'
8075 TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
81- run : python setup.py sdist bdist_wheel && twine upload --skip-existing dist/*
76+ run : |
77+ pip install twine
78+ uv build
79+ twine upload --skip-existing dist/*
0 commit comments