File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,21 @@ jobs:
27
27
28
28
name : check py-${{ matrix.python-version }} airflow-${{ matrix.airflow-version }}
29
29
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
+
30
36
- uses : actions/checkout@v4
37
+ if : steps.check-constraint.outputs.state == 'success'
31
38
32
39
- name : Set up uv
40
+ if : steps.check-constraint.outputs.state == 'success'
33
41
run : curl -LsSf https://astral.sh/uv/install.sh | sh
34
42
35
43
- name : Set up Python ${{ matrix.python-version }}
44
+ if : steps.check-constraint.outputs.state == 'success'
36
45
id : setup-python
37
46
run : |
38
47
uv python install ${{ matrix.python-version }}
@@ -41,16 +50,19 @@ jobs:
41
50
uv venv
42
51
43
52
- name : Install dependencies
53
+ if : steps.check-constraint.outputs.state == 'success'
44
54
run : |
45
55
uv pip compile pyproject.toml -o requirements.txt --extra test
46
56
uv pip install -r requirements.txt "apache-airflow==${{ matrix.airflow-version }}"
47
57
48
58
- name : Install self
59
+ if : steps.check-constraint.outputs.state == 'success'
49
60
run : |
50
61
uvx --from build pyproject-build --installer uv
51
62
uv pip install dist/airflow_serde_polars-0.0.0-py3-none-any.whl --reinstall-package airflow-serde-polars --no-deps
52
63
53
64
- name : Test with pytest
65
+ if : steps.check-constraint.outputs.state == 'success'
54
66
run : |
55
67
source .venv/bin/activate
56
68
pytest -m "airflow or not airflow"
You can’t perform that action at this time.
0 commit comments