Skip to content

Commit bf922bc

Browse files
committed
fix: ealry exit
1 parent 81ad928 commit bf922bc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/check.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,21 @@ jobs:
2727

2828
name: check py-${{ matrix.python-version }} airflow-${{ matrix.airflow-version }}
2929
steps:
30+
- name: check constraint
31+
id: check-constraint
32+
run: |
33+
STATE=$(curl -LsSf "$UV_CONSTRAINT" 2&>1 1&>/dev/null && echo success || echo failure)
34+
echo "state=$STATE" >> "$GITHUB_OUTPUT"
35+
3036
- uses: actions/checkout@v4
37+
if: steps.check-constraint.outputs.state == 'success'
3138

3239
- name: Set up uv
40+
if: steps.check-constraint.outputs.state == 'success'
3341
run: curl -LsSf https://astral.sh/uv/install.sh | sh
3442

3543
- name: Set up Python ${{ matrix.python-version }}
44+
if: steps.check-constraint.outputs.state == 'success'
3645
id: setup-python
3746
run: |
3847
uv python install ${{ matrix.python-version }}
@@ -41,16 +50,19 @@ jobs:
4150
uv venv
4251
4352
- name: Install dependencies
53+
if: steps.check-constraint.outputs.state == 'success'
4454
run: |
4555
uv pip compile pyproject.toml -o requirements.txt --extra test
4656
uv pip install -r requirements.txt "apache-airflow==${{ matrix.airflow-version }}"
4757
4858
- name: Install self
59+
if: steps.check-constraint.outputs.state == 'success'
4960
run: |
5061
uvx --from build pyproject-build --installer uv
5162
uv pip install dist/airflow_serde_polars-0.0.0-py3-none-any.whl --reinstall-package airflow-serde-polars --no-deps
5263
5364
- name: Test with pytest
65+
if: steps.check-constraint.outputs.state == 'success'
5466
run: |
5567
source .venv/bin/activate
5668
pytest -m "airflow or not airflow"

0 commit comments

Comments
 (0)