Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Commit 3dcb697

Browse files
committed
Skip running example DAGs
1 parent 9fd3d14 commit 3dcb697

File tree

1 file changed

+58
-58
lines changed

1 file changed

+58
-58
lines changed

.github/workflows/ci.yml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on: # yamllint disable-line rule:truthy
44
push:
55
branches: [main, mark-project-inactive]
66

7-
pull_request:
8-
branches: [main, 'release-**']
7+
# pull_request:
8+
# branches: [main, 'release-**']
99
# Run on PRs from forks
10-
pull_request_target:
11-
branches: ['main']
12-
types: ['labeled']
10+
# pull_request_target:
11+
# branches: ['main']
12+
# types: ['labeled']
1313
release:
1414
types: ['created']
1515

@@ -120,67 +120,67 @@ jobs:
120120
name: coverage-unit-tests-${{ matrix.python }}-${{ matrix.airflow }}
121121
path: ./.coverage
122122

123-
Run-Example-DAGs:
124-
strategy:
125-
fail-fast: false
126-
matrix:
127-
python: ['3.8', '3.9', '3.10']
128-
airflow: ['2.7', '2.8']
123+
# Run-Example-DAGs:
124+
# strategy:
125+
# fail-fast: false
126+
# matrix:
127+
# python: ['3.8', '3.9', '3.10']
128+
# airflow: ['2.7', '2.8']
129129

130-
if: >-
131-
github.event_name == 'push' ||
132-
(
133-
github.event_name == 'pull_request' &&
134-
github.event.pull_request.head.repo.fork == false
135-
) ||
136-
(
137-
github.event_name == 'pull_request_target' &&
138-
contains(github.event.pull_request.labels.*.name, 'safe to test')
139-
)||
140-
(
141-
github.event_name == 'release'
142-
)
143-
runs-on: ubuntu-latest
144-
steps:
145-
- uses: actions/checkout@v3
146-
if: github.event_name != 'pull_request_target'
130+
# if: >-
131+
# github.event_name == 'push' ||
132+
# (
133+
# github.event_name == 'pull_request' &&
134+
# github.event.pull_request.head.repo.fork == false
135+
# ) ||
136+
# (
137+
# github.event_name == 'pull_request_target' &&
138+
# contains(github.event.pull_request.labels.*.name, 'safe to test')
139+
# )||
140+
# (
141+
# github.event_name == 'release'
142+
# )
143+
# runs-on: ubuntu-latest
144+
# steps:
145+
# - uses: actions/checkout@v3
146+
# if: github.event_name != 'pull_request_target'
147147

148-
- name: Checkout pull/${{ github.event.number }}
149-
uses: actions/checkout@v3
150-
with:
151-
ref: ${{ github.event.pull_request.head.sha }}
152-
if: github.event_name == 'pull_request_target'
148+
# - name: Checkout pull/${{ github.event.number }}
149+
# uses: actions/checkout@v3
150+
# with:
151+
# ref: ${{ github.event.pull_request.head.sha }}
152+
# if: github.event_name == 'pull_request_target'
153153

154-
- uses: actions/setup-python@v3
155-
with:
156-
python-version: ${{ matrix.python }}
157-
architecture: 'x64'
158-
- uses: actions/cache@v3
159-
with:
160-
path: |
161-
~/.cache/pip
162-
.nox
163-
key: example-dags-os-${{ runner.os }}-python-${{ matrix.python }}-airflow-${{ matrix.airflow }}-deps-${{ hashFiles('pyproject.toml') }}-nox-${{ hashFiles('noxfile.py') }}-version-${{ hashFiles('src/astro_databricks/__init__.py') }}
164-
- run: cat .github/ci-test-connections.yaml > test-connections.yaml
165-
- run: sqlite3 /tmp/sqlite_default.db "VACUUM;"
166-
- run: pip3 install nox packaging
167-
- run: DATABRICKS_GROUP_ID="${{github.run_id}}_${{matrix.python}}_${{matrix.airflow}}" nox -s "test-${{ matrix.python }}(airflow='${{ matrix.airflow }}')" -- "tests/test_example_dags.py" --cov-report=xml
168-
- name: Upload coverage
169-
uses: actions/upload-artifact@v4
170-
with:
171-
name: coverage-example-dags-${{ matrix.python }}-${{ matrix.airflow }}
172-
path: ./.coverage
173-
env:
174-
DATABRICKS_CONN_TOKEN: ${{ secrets.DATABRICKS_CONN_TOKEN }}
175-
DATABRICKS_CONN_HOST: ${{ secrets.DATABRICKS_CONN_HOST }}
176-
DATABRICKS_CONN: ${{ secrets.AIRFLOW_CONN_DATABRICKS_DEFAULT }}
154+
# - uses: actions/setup-python@v3
155+
# with:
156+
# python-version: ${{ matrix.python }}
157+
# architecture: 'x64'
158+
# - uses: actions/cache@v3
159+
# with:
160+
# path: |
161+
# ~/.cache/pip
162+
# .nox
163+
# key: example-dags-os-${{ runner.os }}-python-${{ matrix.python }}-airflow-${{ matrix.airflow }}-deps-${{ hashFiles('pyproject.toml') }}-nox-${{ hashFiles('noxfile.py') }}-version-${{ hashFiles('src/astro_databricks/__init__.py') }}
164+
# - run: cat .github/ci-test-connections.yaml > test-connections.yaml
165+
# - run: sqlite3 /tmp/sqlite_default.db "VACUUM;"
166+
# - run: pip3 install nox packaging
167+
# - run: DATABRICKS_GROUP_ID="${{github.run_id}}_${{matrix.python}}_${{matrix.airflow}}" nox -s "test-${{ matrix.python }}(airflow='${{ matrix.airflow }}')" -- "tests/test_example_dags.py" --cov-report=xml
168+
# - name: Upload coverage
169+
# uses: actions/upload-artifact@v4
170+
# with:
171+
# name: coverage-example-dags-${{ matrix.python }}-${{ matrix.airflow }}
172+
# path: ./.coverage
173+
# env:
174+
# DATABRICKS_CONN_TOKEN: ${{ secrets.DATABRICKS_CONN_TOKEN }}
175+
# DATABRICKS_CONN_HOST: ${{ secrets.DATABRICKS_CONN_HOST }}
176+
# DATABRICKS_CONN: ${{ secrets.AIRFLOW_CONN_DATABRICKS_DEFAULT }}
177177

178178

179179
Code-Coverage:
180180
if: github.event.action != 'labeled'
181181
needs:
182182
- Run-Unit-Tests
183-
- Run-Example-DAGs
183+
# - Run-Example-DAGs
184184
runs-on: ubuntu-latest
185185
steps:
186186
- uses: actions/checkout@v3
@@ -214,7 +214,7 @@ jobs:
214214
- Markdown-Link-Check
215215
- Build-Docs
216216
- Run-Unit-Tests
217-
- Run-Example-DAGs
217+
# - Run-Example-DAGs
218218
- Code-Coverage
219219
runs-on: ubuntu-latest
220220
steps:

0 commit comments

Comments
 (0)