Runs the tests nightly #1161
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Runs the tests nightly | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 2 * * *' | |
jobs: | |
run-tests: | |
runs-on: ${{ matrix.os }} | |
name: Run tests with Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] | |
os: [ ubuntu-20.04, windows-latest ] | |
exclude: | |
- os: windows-latest | |
python-version: pypy-3.9 | |
fail-fast: false | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Checkout to code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
pip install -r requirements-test.txt | |
- name: Run tests | |
env: | |
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY_V7 }} | |
HZ_SNAPSHOT_INTERNAL_USERNAME: ${{ secrets.HZ_SNAPSHOT_INTERNAL_USERNAME }} | |
HZ_SNAPSHOT_INTERNAL_PASSWORD: ${{ secrets.HZ_SNAPSHOT_INTERNAL_PASSWORD }} | |
run: python run_tests.py | |
- name: Upload remote controller logs on test failure | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: rc-logs-${{ matrix.python-version }}-${{ matrix.os }} | |
path: | | |
rc_stderr.log | |
rc_stdout.log |