@@ -3,27 +3,27 @@ name: main
33on :
44 push :
55 branches :
6- - main
6+ - main
77 pull_request :
88 types : [opened, synchronize, reopened, ready_for_review]
99
1010jobs :
1111 quality :
1212 runs-on : ubuntu-latest
1313 steps :
14- - name : Check out
15- uses : actions/checkout@v5
14+ - name : Check out
15+ uses : actions/checkout@v6
1616
17- - uses : actions/cache@v4
18- with :
19- path : ~/.cache/pre-commit
20- key : pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
17+ - uses : actions/cache@v5
18+ with :
19+ path : ~/.cache/pre-commit
20+ key : pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
2121
22- - name : Set up the environment
23- uses : ./.github/actions/setup-python-env
22+ - name : Set up the environment
23+ uses : ./.github/actions/setup-python-env
2424
25- - name : Run checks
26- run : make check
25+ - name : Run checks
26+ run : make check
2727
2828 tests-and-type-check :
2929 runs-on : ubuntu-latest
@@ -35,25 +35,25 @@ jobs:
3535 run :
3636 shell : bash
3737 steps :
38- - name : Check out
39- uses : actions/checkout@v5
38+ - name : Check out
39+ uses : actions/checkout@v6
4040
41- - name : Set up the environment
42- uses : ./.github/actions/setup-python-env
43- with :
44- python-version : ${{ matrix.python-version }}
41+ - name : Set up the environment
42+ uses : ./.github/actions/setup-python-env
43+ with :
44+ python-version : ${{ matrix.python-version }}
4545
46- - name : start tile38 leader and follower
47- run : docker compose up -d
46+ - name : start tile38 leader and follower
47+ run : docker compose up -d
4848
49- - name : Run tests
50- run : uv run python -m pytest tests --cov --cov-config=pyproject.toml --cov-report=xml
49+ - name : Run tests
50+ run : uv run python -m pytest tests --cov --cov-config=pyproject.toml --cov-report=xml
5151
52- - name : Check typing
53- run : uv run mypy
52+ - name : Check typing
53+ run : uv run mypy
5454
55- - name : stop tile38 leader and follower
56- run : docker compose down
55+ - name : stop tile38 leader and follower
56+ run : docker compose down
5757
5858 release :
5959 if : github.event_name == 'push'
@@ -66,32 +66,32 @@ jobs:
6666 contents : write
6767 needs : [quality, tests-and-type-check]
6868 steps :
69- - uses : actions/checkout@v5
70- with :
71- fetch-depth : 0
72-
73- - uses : actions/cache@v4
74- with :
75- path : ~/.cache/pre-commit
76- key : pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
77-
78- - name : Set up the environment
79- uses : ./.github/actions/setup-python-env
80-
81- - name : Python Semantic Release
82- id : release
83- uses : python-semantic-release/python-semantic-release@v10.4.1
84- with :
85- github_token : ${{ secrets.GITHUB_TOKEN }}
86-
87- - name : Publish package distributions to PyPI
88- uses : pypa/gh-action-pypi-publish@release/v1
89- # NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
90- # See https://github.com/actions/runner/issues/1173
91- if : steps.release.outputs.released == 'true'
92-
93- - name : Publish package distributions to GitHub Releases
94- uses : python-semantic-release/upload-to-gh-release@main
95- if : steps.release.outputs.released == 'true'
96- with :
97- github_token : ${{ secrets.GITHUB_TOKEN }}
69+ - uses : actions/checkout@v5
70+ with :
71+ fetch-depth : 0
72+
73+ - uses : actions/cache@v5
74+ with :
75+ path : ~/.cache/pre-commit
76+ key : pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
77+
78+ - name : Set up the environment
79+ uses : ./.github/actions/setup-python-env
80+
81+ - name : Python Semantic Release
82+ id : release
83+ uses : python-semantic-release/python-semantic-release@v10.4.1
84+ with :
85+ github_token : ${{ secrets.GITHUB_TOKEN }}
86+
87+ - name : Publish package distributions to PyPI
88+ uses : pypa/gh-action-pypi-publish@release/v1
89+ # NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
90+ # See https://github.com/actions/runner/issues/1173
91+ if : steps.release.outputs.released == 'true'
92+
93+ - name : Publish package distributions to GitHub Releases
94+ uses : python-semantic-release/upload-to-gh-release@main
95+ if : steps.release.outputs.released == 'true'
96+ with :
97+ github_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments