@@ -23,60 +23,13 @@ jobs:
2323 steps :
2424 - uses : actions/checkout@v4
2525
26- - name : Install uv
26+ - name : Install uv and set the python version
2727 uses : astral-sh/setup-uv@v5
2828 with :
29- version : " 0.6.6"
30-
31- - name : Set up Python
32- run : uv python install
29+ python-version : ${{ matrix.python-version }}
3330
3431 - name : Install the project
3532 run : uv sync --all-extras --dev
3633
3734 - name : Run tests
38- run : uv run pytest tests
39-
40- - name : Set up Python ${{ matrix.python-version }}
41- uses : actions/setup-python@v3
42- with :
43- python-version : ${{ matrix.python-version }}
44- - name : Install system dependencies
45- run : |
46- sudo apt-get update
47- sudo apt-get install build-essential libssl-dev libffi-dev python3-dev libzmq3-dev
48- - name : Install dependencies
49- run : |
50- python -m pip install --upgrade pip
51- pip install poetry
52- poetry install
53- - name : Run tests
54- run : poetry run pytest
55- pypi-publish :
56- name : Upload release to PyPI
57- runs-on : ubuntu-latest
58- environment :
59- name : pypi
60- url : https://pypi.org/p/rtichoke
61- permissions :
62- id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
63- steps :
64- - uses : actions/checkout@v3
65- - name : Set up Python
66- uses : actions/setup-python@v3
67- with :
68- python-version : ' 3.x'
69- - name : Install Poetry
70- run : |
71- curl -sSL https://install.python-poetry.org | python3 -
72- export PATH="$HOME/.local/bin:$PATH"
73- - name : Install dependencies
74- run : |
75- poetry install
76- - name : Build package
77- run : |
78- poetry build
79- - name : Publish package
80- run : |
81- python -m pip install --upgrade twine
82- twine upload dist/*
35+ run : uv run pytest tests
0 commit comments