Skip to content

Commit 1a36953

Browse files
committed
adjust test setup
1 parent 20228b8 commit 1a36953

File tree

1 file changed

+139
-139
lines changed

1 file changed

+139
-139
lines changed

.github/workflows/build_test.yml

Lines changed: 139 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ jobs:
116116
test:
117117
name: Test ${{ matrix.os.download_name }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
118118
needs: build
119+
timeout-minutes: 30
119120
runs-on: ${{ matrix.os.image_name }}
120121
strategy:
121122
fail-fast: false
@@ -169,7 +170,8 @@ jobs:
169170
- name: Install tox
170171
run: python -m pip install tox>=4
171172
- name: Run tests
172-
run: python -m tox run -e `echo py${PYTHON_VERSION/\./}-{extras,unit,integ,pandas,sso}-ci | sed 's/ /,/g'`
173+
# run: python -m tox run -e `echo py${PYTHON_VERSION/\./}-{extras,integ,pandas,sso}-ci | sed 's/ /,/g'`
174+
run: python -m tox run -e `echo py${PYTHON_VERSION/\./}-{extras,integ}-ci | sed 's/ /,/g'`
173175
env:
174176
PYTHON_VERSION: ${{ matrix.python-version }}
175177
cloud_provider: ${{ matrix.cloud-provider }}
@@ -187,6 +189,9 @@ jobs:
187189
.tox/.coverage
188190
.tox/coverage.xml
189191
192+
- name: Print LocalStack logs
193+
run: localstack logs
194+
190195
# test-olddriver:
191196
# name: Old Driver Test ${{ matrix.os.download_name }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
192197
# needs: lint
@@ -258,143 +263,138 @@ jobs:
258263
# PYTEST_ADDOPTS: --color=yes --tb=short
259264
# shell: bash
260265

261-
test-fips:
262-
name: Test FIPS linux-3.8-${{ matrix.cloud-provider }}
263-
needs: build
264-
runs-on: ubuntu-latest
265-
strategy:
266-
fail-fast: false
267-
matrix:
268-
cloud-provider: [aws]
269-
steps:
270-
- uses: actions/checkout@v4
271-
- name: Setup parameters file
272-
shell: bash
273-
env:
274-
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
275-
run: |
276-
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
277-
.github/workflows/parameters/public/parameters_${{ matrix.cloud-provider }}.py.gpg > test/parameters.py
278-
- name: Download wheel(s)
279-
uses: actions/download-artifact@v4
280-
with:
281-
name: manylinux_x86_64_py3.8
282-
path: dist
283-
- name: Show wheels downloaded
284-
run: ls -lh dist
285-
shell: bash
286-
- name: Run tests
287-
run: ./ci/test_fips_docker.sh
288-
env:
289-
PYTHON_VERSION: 3.8
290-
cloud_provider: ${{ matrix.cloud-provider }}
291-
PYTEST_ADDOPTS: --color=yes --tb=short
292-
TOX_PARALLEL_NO_SPINNER: 1
293-
shell: bash
294-
- uses: actions/upload-artifact@v4
295-
with:
296-
include-hidden-files: true
297-
name: coverage_linux-fips-3.8-${{ matrix.cloud-provider }}
298-
path: |
299-
.coverage
300-
coverage.xml
301-
302-
test-lambda:
303-
name: Test Lambda linux-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
304-
needs: build
305-
runs-on: ubuntu-latest
306-
strategy:
307-
fail-fast: false
308-
matrix:
309-
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
310-
python-version: ["3.11"]
311-
cloud-provider: [aws]
312-
steps:
313-
- name: Set shortver
314-
run: echo "shortver=${longver//./}" >> $GITHUB_ENV
315-
env:
316-
longver: ${{ matrix.python-version }}
317-
shell: bash
318-
- uses: actions/checkout@v4
319-
- name: Setup parameters file
320-
shell: bash
321-
env:
322-
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
323-
run: |
324-
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
325-
.github/workflows/parameters/public/parameters_${{ matrix.cloud-provider }}.py.gpg > test/parameters.py
326-
- name: Download wheel(s)
327-
uses: actions/download-artifact@v4
328-
with:
329-
name: manylinux_x86_64_py${{ matrix.python-version }}
330-
path: dist
331-
- name: Show wheels downloaded
332-
run: ls -lh dist
333-
shell: bash
334-
- name: Run tests
335-
run: ./ci/test_lambda_docker.sh ${PYTHON_VERSION}
336-
env:
337-
PYTHON_VERSION: ${{ matrix.python-version }}
338-
cloud_provider: ${{ matrix.cloud-provider }}
339-
PYTEST_ADDOPTS: --color=yes --tb=short
340-
TOX_PARALLEL_NO_SPINNER: 1
341-
shell: bash
342-
- uses: actions/upload-artifact@v4
343-
with:
344-
include-hidden-files: true
345-
name: coverage_linux-lambda-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
346-
path: |
347-
.coverage.py${{ env.shortver }}-lambda-ci
348-
junit.py${{ env.shortver }}-lambda-ci-dev.xml
266+
# test-fips:
267+
# name: Test FIPS linux-3.8-${{ matrix.cloud-provider }}
268+
# needs: build
269+
# runs-on: ubuntu-latest
270+
# strategy:
271+
# fail-fast: false
272+
# matrix:
273+
# cloud-provider: [aws]
274+
# steps:
275+
# - uses: actions/checkout@v3
276+
# - name: Setup parameters file
277+
# shell: bash
278+
# env:
279+
# PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
280+
# run: |
281+
# gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
282+
# .github/workflows/parameters/public/parameters_${{ matrix.cloud-provider }}.py.gpg > test/parameters.py
283+
# - name: Download wheel(s)
284+
# uses: actions/download-artifact@v3
285+
# with:
286+
# name: manylinux_x86_64_py3.8
287+
# path: dist
288+
# - name: Show wheels downloaded
289+
# run: ls -lh dist
290+
# shell: bash
291+
# - name: Run tests
292+
# run: ./ci/test_fips_docker.sh
293+
# env:
294+
# PYTHON_VERSION: 3.8
295+
# cloud_provider: ${{ matrix.cloud-provider }}
296+
# PYTEST_ADDOPTS: --color=yes --tb=short
297+
# TOX_PARALLEL_NO_SPINNER: 1
298+
# shell: bash
299+
# - uses: actions/upload-artifact@v3
300+
# with:
301+
# name: coverage_linux-fips-3.8-${{ matrix.cloud-provider }}
302+
# path: |
303+
# .coverage
304+
# coverage.xml
349305

350-
combine-coverage:
351-
if: ${{ success() || failure() }}
352-
name: Combine coverage
353-
needs: [lint, test, test-fips, test-lambda]
354-
runs-on: ubuntu-latest
355-
steps:
356-
- uses: actions/checkout@v4
357-
- uses: actions/download-artifact@v4
358-
with:
359-
path: artifacts
360-
- name: Set up Python
361-
uses: actions/setup-python@v4
362-
with:
363-
python-version: '3.8'
364-
- name: Display Python version
365-
run: python -c "import sys; print(sys.version)"
366-
- name: Upgrade setuptools and pip
367-
run: python -m pip install -U setuptools pip wheel
368-
- name: Install tox
369-
run: python -m pip install tox>=4
370-
- name: Collect all coverages to one dir
371-
run: |
372-
python -c '
373-
from pathlib import Path
374-
import shutil
306+
# test-lambda:
307+
# name: Test Lambda linux-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
308+
# needs: build
309+
# runs-on: ubuntu-latest
310+
# strategy:
311+
# fail-fast: false
312+
# matrix:
313+
## python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
314+
# python-version: ["3.11"]
315+
# cloud-provider: [aws]
316+
# steps:
317+
# - name: Set shortver
318+
# run: echo "shortver=${longver//./}" >> $GITHUB_ENV
319+
# env:
320+
# longver: ${{ matrix.python-version }}
321+
# shell: bash
322+
# - uses: actions/checkout@v3
323+
# - name: Setup parameters file
324+
# shell: bash
325+
# env:
326+
# PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
327+
# run: |
328+
# gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
329+
# .github/workflows/parameters/public/parameters_${{ matrix.cloud-provider }}.py.gpg > test/parameters.py
330+
# - name: Download wheel(s)
331+
# uses: actions/download-artifact@v3
332+
# with:
333+
# name: manylinux_x86_64_py${{ matrix.python-version }}
334+
# path: dist
335+
# - name: Show wheels downloaded
336+
# run: ls -lh dist
337+
# shell: bash
338+
# - name: Run tests
339+
# run: ./ci/test_lambda_docker.sh ${PYTHON_VERSION}
340+
# env:
341+
# PYTHON_VERSION: ${{ matrix.python-version }}
342+
# cloud_provider: ${{ matrix.cloud-provider }}
343+
# PYTEST_ADDOPTS: --color=yes --tb=short
344+
# TOX_PARALLEL_NO_SPINNER: 1
345+
# shell: bash
346+
# - uses: actions/upload-artifact@v3
347+
# with:
348+
# name: coverage_linux-lambda-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
349+
# path: |
350+
# .coverage.py${{ env.shortver }}-lambda-ci
351+
# junit.py${{ env.shortver }}-lambda-ci-dev.xml
375352

376-
src_dir = Path("artifacts")
377-
dst_dir = Path(".") / ".tox"
378-
dst_dir.mkdir()
379-
for src_file in src_dir.glob("*/.coverage"):
380-
dst_file = dst_dir / ".coverage.{}".format(src_file.parent.name[9:])
381-
print("{} copy to {}".format(src_file, dst_file))
382-
shutil.copy(str(src_file), str(dst_file))'
383-
- name: Combine coverages
384-
run: python -m tox run -e coverage
385-
- name: Publish html coverage
386-
uses: actions/upload-artifact@v4
387-
with:
388-
include-hidden-files: true
389-
name: overall_cov_html
390-
path: .tox/htmlcov
391-
- name: Publish xml coverage
392-
uses: actions/upload-artifact@v4
393-
with:
394-
include-hidden-files: true
395-
name: overall_cov_xml
396-
path: .tox/coverage.xml
397-
- uses: codecov/codecov-action@v4
398-
with:
399-
files: .tox/coverage.xml
400-
token: ${{ secrets.CODECOV_TOKEN }}
353+
# combine-coverage:
354+
# if: ${{ success() || failure() }}
355+
# name: Combine coverage
356+
# needs: [lint, test, test-fips, test-lambda]
357+
# runs-on: ubuntu-latest
358+
# steps:
359+
# - uses: actions/checkout@v3
360+
# - uses: actions/download-artifact@v3
361+
# with:
362+
# path: artifacts
363+
# - name: Set up Python
364+
# uses: actions/setup-python@v4
365+
# with:
366+
# python-version: '3.8'
367+
# - name: Display Python version
368+
# run: python -c "import sys; print(sys.version)"
369+
# - name: Upgrade setuptools and pip
370+
# run: python -m pip install -U setuptools pip wheel
371+
# - name: Install tox
372+
# run: python -m pip install tox>=4
373+
# - name: Collect all coverages to one dir
374+
# run: |
375+
# python -c '
376+
# from pathlib import Path
377+
# import shutil
378+
#
379+
# src_dir = Path("artifacts")
380+
# dst_dir = Path(".") / ".tox"
381+
# dst_dir.mkdir()
382+
# for src_file in src_dir.glob("*/.coverage"):
383+
# dst_file = dst_dir / ".coverage.{}".format(src_file.parent.name[9:])
384+
# print("{} copy to {}".format(src_file, dst_file))
385+
# shutil.copy(str(src_file), str(dst_file))'
386+
# - name: Combine coverages
387+
# run: python -m tox run -e coverage
388+
## - name: Publish html coverage
389+
## uses: actions/upload-artifact@v3
390+
## with:
391+
## name: overall_cov_html
392+
## path: .tox/htmlcov
393+
## - name: Publish xml coverage
394+
## uses: actions/upload-artifact@v3
395+
## with:
396+
## name: overall_cov_xml
397+
## path: .tox/coverage.xml
398+
# - uses: codecov/codecov-action@v3
399+
# with:
400+
# files: .tox/coverage.xml

0 commit comments

Comments
 (0)