@@ -11,59 +11,56 @@ jobs:
1111 runs-on : ubuntu-latest
1212
1313 steps :
14- - name : Checkout code
15- uses : actions/checkout@v3
14+ - uses : actions/checkout@v6
1615 with :
1716 fetch-depth : 0
18- - name : Set up Python 3.10
19- uses : actions/setup-python@v4
20- with :
21- python-version : " 3.10"
22- - name : Cache poetry
23- id : cache-poetry
24- uses : actions/cache@v3
25- with :
26- path : ~/.local
27- key : poetry-${{ runner.os }}
28- - name : Install poetry
29- if : steps.cache-poetry.outputs.cache-hit != 'true'
30- uses : snok/install-poetry@v1
17+
18+ - name : Set up Python 3.14
19+ uses : actions/setup-python@v6
3120 with :
32- virtualenvs-in-project : true
33- - name : Cache venv
34- id : cache-venv
35- uses : actions/cache@v3
21+ python-version : " 3.14 "
22+
23+ - name : Install uv
24+ uses : astral-sh/setup-uv@v7
3625 with :
37- path : .venv
38- key : venv-${{ runner.os }}-${{ hashFiles('poetry.lock') }}
39- restore-keys : |
40- venv-${{ runner.os }}-
26+ enable-cache : true
27+
4128 - name : Install dependencies
42- if : steps.cache-venv.outputs.cache-hit != 'true'
43- run : poetry install --with docs
29+ run : uv sync
30+
4431 - name : Run tests
45- run : poetry run pytest -v
32+ run : uv run pytest -v
33+
4634 - name : Check formatting
47- run : poetry run black --check .
35+ run : uv run ruff format --check bolt_control_flow examples tests
36+
37+ - name : Check imports
38+ run : uv run ruff check --select I bolt_control_flow examples tests
39+
4840 - name : Build docs
4941 run : |
5042 mkdir gh-pages
5143 touch gh-pages/.nojekyll
5244 cd docs/
5345 poetry run make html
5446 cp -r build/* ../gh-pages/
47+
5548 - name : Release
56- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
49+ if : |
50+ github.repository == 'vdvman1/bolt-control-flow'
51+ && github.event_name == 'push'
52+ && github.ref == 'refs/heads/main'
5753 env :
5854 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5955 PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
6056 run : |
6157 git config --global user.name "github-actions"
6258 git config --global user.email "action@github.com"
63- poetry run semantic-release publish -v DEBUG -D commit_author="github-actions <action@github.com>"
59+ uv run semantic-release publish -v DEBUG -D commit_author="github-actions <action@github.com>"
60+
6461 - name : Publish docs
6562 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
6663 uses : JamesIves/github-pages-deploy-action@4.1.4
6764 with :
6865 branch : gh-pages
69- folder : gh-pages
66+ folder : gh-pages
0 commit comments