1313 merge_group :
1414
1515concurrency :
16- # Cancel running job if another commit is pushed to the branch
1716 group : ${{ github.ref }}
1817 cancel-in-progress : true
1918
@@ -34,14 +33,14 @@ jobs:
3433 - macos-latest
3534 steps :
3635 - uses : actions/checkout@v4
37- - uses : actions/setup-python@v5
38- with :
39- python-version : ${{ matrix.python-version }}
4036 - uses : astral-sh/setup-uv@v5
4137 with :
42- enable-cache : true
38+ python-version : ${{ matrix.python-version }}
4339 - name : Sync
4440 run : uv sync --all-extras
41+ - name : Lint
42+ if : runner.os != 'Windows'
43+ run : uv run pre-commit run --all-files
4544 - name : Test on windows
4645 if : runner.os == 'Windows'
4746 shell : bash
5756 runs-on : ubuntu-latest
5857 steps :
5958 - uses : actions/checkout@v4
60- - uses : actions/setup-python@v5
61- with :
62- python-version : " 3.10"
6359 - uses : astral-sh/setup-uv@v5
64- with :
65- enable-cache : true
6660 - name : Install with dependencies
6761 run : uv sync --all-extras
6862 - name : Run coverage with orjson
@@ -80,45 +74,18 @@ jobs:
8074 if : ${{ env.GITHUB_REPOSITORY }} == 'stac-utils/pystac'
8175 with :
8276 token : ${{ secrets.CODECOV_TOKEN }}
83- file : ./coverage.xml
77+ files : ./coverage.xml
8478 fail_ci_if_error : false
8579 - name : Check for coverage drop
8680 # This will use the configured fail-under, causing this job to fail if the
8781 # coverage drops.
8882 run : uv run coverage report
8983
90- lint :
91- runs-on : ubuntu-latest
92- strategy :
93- matrix :
94- python-version :
95- - " 3.10"
96- - " 3.11"
97- - " 3.12"
98- - " 3.13"
99- steps :
100- - uses : actions/checkout@v4
101- - uses : actions/setup-python@v5
102- with :
103- python-version : ${{ matrix.python-version }}
104- - uses : astral-sh/setup-uv@v5
105- with :
106- enable-cache : true
107- - name : Sync
108- run : uv sync
109- - name : Execute linters & type checkers
110- run : uv run pre-commit run --all-files
111-
11284 without-orjson :
11385 runs-on : ubuntu-latest
11486 steps :
11587 - uses : actions/checkout@v4
116- - uses : actions/setup-python@v5
117- with :
118- python-version : " 3.10"
11988 - uses : astral-sh/setup-uv@v5
120- with :
121- enable-cache : true
12289 - name : Sync
12390 run : uv sync
12491 - name : Uninstall orjson
@@ -150,15 +117,10 @@ jobs:
150117 runs-on : ubuntu-latest
151118 steps :
152119 - uses : actions/checkout@v4
153- - uses : actions/setup-python@v5
154- with :
155- python-version : " 3.10"
156120 - uses : astral-sh/setup-uv@v5
157- with :
158- enable-cache : true
159121 - name : Install pandoc
160122 run : sudo apt-get install pandoc
161- - name : Install pystac
162- run : uv sync --no-dev && uv sync --package pystac- docs --inexact
123+ - name : Sync
124+ run : uv sync --group docs
163125 - name : Check docs
164126 run : uv run make -C docs html SPHINXOPTS="-W --keep-going -n"
0 commit comments