Skip to content

Commit 0b3b1c0

Browse files
committed
Run test without outputting to console
1 parent 3ce3fcc commit 0b3b1c0

File tree

1 file changed

+67
-66
lines changed

1 file changed

+67
-66
lines changed

.github/workflows/integration_tests.yml

Lines changed: 67 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: [ "3.11", ]
21+
python-version: [ "3.11", "3.12", "3.13"]
2222
# environment: [ "mysql", "pg" ]
2323
environment: [ "mysql",]
2424

@@ -48,23 +48,17 @@ jobs:
4848
role-session-name: python_integration_tests
4949
role-duration-seconds: 21600
5050
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
51-
- name: Setup upterm session
52-
uses: owenthereal/action-upterm@v1
51+
52+
- name: 'Run LTS Integration Tests'
53+
timeout-minutes: 180
54+
run: |
55+
./gradlew --no-parallel --no-daemon test-python-${{ matrix.python-version }}-${{ matrix.environment }} --info \
56+
> test-output.log 2>&1
5357
env:
5458
RDS_CLUSTER_DOMAIN: ${{ secrets.DB_CONN_SUFFIX }}
5559
RDS_DB_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
5660
AURORA_MYSQL_DB_ENGINE_VERSION: lts
5761
AURORA_PG_ENGINE_VERSION: lts
58-
59-
60-
# - name: 'Run LTS Integration Tests'
61-
# run: |
62-
# ./gradlew --no-parallel --no-daemon test-python-${{ matrix.python-version }}-${{ matrix.environment }} --info
63-
# env:
64-
# RDS_CLUSTER_DOMAIN: ${{ secrets.DB_CONN_SUFFIX }}
65-
# RDS_DB_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
66-
# AURORA_MYSQL_DB_ENGINE_VERSION: lts
67-
# AURORA_PG_ENGINE_VERSION: lts
6862

6963
- name: 'Archive LTS results'
7064
if: always()
@@ -74,56 +68,63 @@ jobs:
7468
path: ./tests/integration/container/reports
7569
retention-days: 5
7670

77-
# latest-integration-tests:
78-
# name: Run Latest Integration Tests
79-
# runs-on: ubuntu-latest
80-
# needs: lts-integration-tests
81-
# strategy:
82-
# fail-fast: false
83-
# matrix:
84-
# python-version: [ "3.11", "3.12", "3.13" ]
85-
# environment: ["mysql", "pg"]
86-
87-
# steps:
88-
# - name: 'Clone repository'
89-
# uses: actions/checkout@v4
90-
91-
# - name: 'Set up JDK 8'
92-
# uses: actions/setup-java@v4
93-
# with:
94-
# distribution: 'corretto'
95-
# java-version: 8
96-
97-
# - name: Install poetry
98-
# shell: bash
99-
# run: |
100-
# pipx install poetry==1.8.2
101-
# poetry config virtualenvs.prefer-active-python true
102-
103-
# - name: Install dependencies
104-
# run: poetry install
105-
106-
# - name: 'Configure AWS Credentials'
107-
# uses: aws-actions/configure-aws-credentials@v4
108-
# with:
109-
# role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_DEPLOY_ROLE }}
110-
# role-session-name: python_integration_tests
111-
# role-duration-seconds: 21600
112-
# aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
113-
114-
# - name: 'Run Latest Integration Tests'
115-
# run: |
116-
# ./gradlew --no-parallel --no-daemon test-python-${{ matrix.python-version }}-${{ matrix.environment }} --info
117-
# env:
118-
# RDS_CLUSTER_DOMAIN: ${{ secrets.DB_CONN_SUFFIX }}
119-
# RDS_DB_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
120-
# AURORA_MYSQL_DB_ENGINE_VERSION: latest
121-
# AURORA_PG_ENGINE_VERSION: latest
122-
123-
# - name: 'Archive Latest results'
124-
# if: always()
125-
# uses: actions/upload-artifact@v4
126-
# with:
127-
# name: pytest-integration-report-${{ matrix.python-version }}-${{ matrix.environment }}-latest
128-
# path: ./tests/integration/container/reports
129-
# retention-days: 5
71+
- name: Upload logs
72+
uses: actions/upload-artifact@v4
73+
if: always()
74+
with:
75+
name: pytest-integration-${{ matrix.python-version }}-${{ matrix.environment }}-log
76+
path: test-output.log
77+
78+
latest-integration-tests:
79+
name: Run Latest Integration Tests
80+
runs-on: ubuntu-latest
81+
needs: lts-integration-tests
82+
strategy:
83+
fail-fast: false
84+
matrix:
85+
python-version: [ "3.11", "3.12", "3.13" ]
86+
environment: ["mysql", "pg"]
87+
88+
steps:
89+
- name: 'Clone repository'
90+
uses: actions/checkout@v4
91+
92+
- name: 'Set up JDK 8'
93+
uses: actions/setup-java@v4
94+
with:
95+
distribution: 'corretto'
96+
java-version: 8
97+
98+
- name: Install poetry
99+
shell: bash
100+
run: |
101+
pipx install poetry==1.8.2
102+
poetry config virtualenvs.prefer-active-python true
103+
104+
- name: Install dependencies
105+
run: poetry install
106+
107+
- name: 'Configure AWS Credentials'
108+
uses: aws-actions/configure-aws-credentials@v4
109+
with:
110+
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_DEPLOY_ROLE }}
111+
role-session-name: python_integration_tests
112+
role-duration-seconds: 21600
113+
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
114+
115+
- name: 'Run Latest Integration Tests'
116+
run: |
117+
./gradlew --no-parallel --no-daemon test-python-${{ matrix.python-version }}-${{ matrix.environment }} --info
118+
env:
119+
RDS_CLUSTER_DOMAIN: ${{ secrets.DB_CONN_SUFFIX }}
120+
RDS_DB_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
121+
AURORA_MYSQL_DB_ENGINE_VERSION: latest
122+
AURORA_PG_ENGINE_VERSION: latest
123+
124+
- name: 'Archive Latest results'
125+
if: always()
126+
uses: actions/upload-artifact@v4
127+
with:
128+
name: pytest-integration-report-${{ matrix.python-version }}-${{ matrix.environment }}-latest
129+
path: ./tests/integration/container/reports
130+
retention-days: 5

0 commit comments

Comments
 (0)