Skip to content

Commit 91cdb96

Browse files
committed
disable integration tests
1 parent cc197d2 commit 91cdb96

File tree

1 file changed

+89
-91
lines changed

1 file changed

+89
-91
lines changed

.github/workflows/test.yaml

Lines changed: 89 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -67,96 +67,96 @@ jobs:
6767
flags: unit
6868
name: unit
6969

70-
integration:
71-
name: Integration tests
72-
runs-on: ubuntu-latest
73-
timeout-minutes: 60
74-
strategy:
75-
matrix:
76-
chunks: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
77-
env:
78-
MINIKUBE_DRIVER: none
79-
steps:
80-
- name: Checkout commit
81-
uses: actions/checkout@v5
82-
- name: Install python
83-
uses: actions/setup-python@v6
84-
with:
85-
python-version-file: .python-version
86-
- name: Install pipx
87-
run: python3 -m pip install --user pipx && python3 -m pipx ensurepath
88-
- name: Install Poetry with pipx
89-
run: |
90-
pipx install poetry
91-
- name: Setup Python dependencies cache
92-
uses: actions/cache@v4
93-
with:
94-
path: ~/.cache/pypoetry
95-
key: poetry-${{ hashFiles('**/poetry.lock') }}
96-
restore-keys: |
97-
poetry-
98-
- name: Install dependencies
99-
run: make setup
100-
- name: Login to ghcr.io
101-
uses: docker/login-action@v3.6.0
102-
with:
103-
registry: ghcr.io
104-
username: ${{ github.actor }}
105-
password: ${{ github.token }}
106-
- name: Install Conntrack
107-
run: sudo apt-get -q install -y conntrack
108-
- name: Start minikube
109-
run: |
110-
make install_k8s
111-
make start_k8s
112-
- name: Pull test images
113-
run: make docker_pull_test_images
114-
- name: Increment index
115-
id: group
116-
shell: python
117-
run: |
118-
import os
119-
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
120-
f.write(f"group={int(os.environ['ARG']) + 1}")
121-
env:
122-
ARG: ${{ strategy.job-index }}
123-
- name: Run integration tests
124-
run: make test_integration
125-
env:
126-
COUNT: ${{ strategy.job-total }}
127-
GROUP: ${{ steps.group.outputs.group }}
128-
COVERAGE_FILE: ${{ strategy.job-index }}.coverage
129-
- name: Upload coverage part
130-
uses: actions/upload-artifact@v5
131-
with:
132-
name: coverage-${{ strategy.job-index }}
133-
path: ${{ strategy.job-index }}.coverage
70+
# integration:
71+
# name: Integration tests
72+
# runs-on: ubuntu-latest
73+
# timeout-minutes: 60
74+
# strategy:
75+
# matrix:
76+
# chunks: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
77+
# env:
78+
# MINIKUBE_DRIVER: none
79+
# steps:
80+
# - name: Checkout commit
81+
# uses: actions/checkout@v5
82+
# - name: Install python
83+
# uses: actions/setup-python@v6
84+
# with:
85+
# python-version-file: .python-version
86+
# - name: Install pipx
87+
# run: python3 -m pip install --user pipx && python3 -m pipx ensurepath
88+
# - name: Install Poetry with pipx
89+
# run: |
90+
# pipx install poetry
91+
# - name: Setup Python dependencies cache
92+
# uses: actions/cache@v4
93+
# with:
94+
# path: ~/.cache/pypoetry
95+
# key: poetry-${{ hashFiles('**/poetry.lock') }}
96+
# restore-keys: |
97+
# poetry-
98+
# - name: Install dependencies
99+
# run: make setup
100+
# - name: Login to ghcr.io
101+
# uses: docker/login-action@v3.6.0
102+
# with:
103+
# registry: ghcr.io
104+
# username: ${{ github.actor }}
105+
# password: ${{ github.token }}
106+
# - name: Install Conntrack
107+
# run: sudo apt-get -q install -y conntrack
108+
# - name: Start minikube
109+
# run: |
110+
# make install_k8s
111+
# make start_k8s
112+
# - name: Pull test images
113+
# run: make docker_pull_test_images
114+
# - name: Increment index
115+
# id: group
116+
# shell: python
117+
# run: |
118+
# import os
119+
# with open(os.environ["GITHUB_OUTPUT"], "a") as f:
120+
# f.write(f"group={int(os.environ['ARG']) + 1}")
121+
# env:
122+
# ARG: ${{ strategy.job-index }}
123+
# - name: Run integration tests
124+
# run: make test_integration
125+
# env:
126+
# COUNT: ${{ strategy.job-total }}
127+
# GROUP: ${{ steps.group.outputs.group }}
128+
# COVERAGE_FILE: ${{ strategy.job-index }}.coverage
129+
# - name: Upload coverage part
130+
# uses: actions/upload-artifact@v5
131+
# with:
132+
# name: coverage-${{ strategy.job-index }}
133+
# path: ${{ strategy.job-index }}.coverage
134134

135-
upload-coverage:
136-
needs: integration
137-
name: Upload integration tests coverage
138-
runs-on: ubuntu-latest
139-
steps:
140-
- name: Checkout commit
141-
uses: actions/checkout@v5
142-
- name: Download All Coverages
143-
uses: actions/download-artifact@v6
144-
with:
145-
path: coverage
146-
pattern: coverage-*
147-
merge-multiple: true
148-
- name: Combine coverages
149-
run: |
150-
pip install coverage
151-
coverage combine coverage/*.coverage
152-
coverage xml -o .coverage-integration.xml
153-
- name: Upload coverage to Codecov
154-
uses: codecov/codecov-action@v5
155-
with:
156-
token: ${{ secrets.CODECOV_TOKEN }}
157-
files: .coverage-integration.xml
158-
flags: integration
159-
name: integration
135+
# upload-coverage:
136+
# needs: integration
137+
# name: Upload integration tests coverage
138+
# runs-on: ubuntu-latest
139+
# steps:
140+
# - name: Checkout commit
141+
# uses: actions/checkout@v5
142+
# - name: Download All Coverages
143+
# uses: actions/download-artifact@v6
144+
# with:
145+
# path: coverage
146+
# pattern: coverage-*
147+
# merge-multiple: true
148+
# - name: Combine coverages
149+
# run: |
150+
# pip install coverage
151+
# coverage combine coverage/*.coverage
152+
# coverage xml -o .coverage-integration.xml
153+
# - name: Upload coverage to Codecov
154+
# uses: codecov/codecov-action@v5
155+
# with:
156+
# token: ${{ secrets.CODECOV_TOKEN }}
157+
# files: .coverage-integration.xml
158+
# flags: integration
159+
# name: integration
160160

161161
image-upload:
162162
name: Upload image artifact
@@ -199,8 +199,6 @@ jobs:
199199
needs:
200200
- lint
201201
- unit
202-
- integration
203-
- upload-coverage
204202
- image-upload
205203
runs-on: ubuntu-latest
206204
if: always()

0 commit comments

Comments
 (0)