Manual : Run client integration tests #492
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: "Manual : Run client integration tests" | |
on: | |
schedule: | |
- cron: '0 12 * * *' | |
workflow_dispatch: | |
jobs: | |
python-client-integration: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build and launch DJ demo environment | |
run: DOTENV_FILE="/code/datajunction-server/.env.integration" docker-compose --profile demo up -d | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: pdm-project/setup-pdm@v3 | |
name: Setup PDM | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
prerelease: true | |
enable-pep582: true | |
- name: Install dependencies | |
run: | | |
pdm sync -d | |
cd ./datajunction-clients/python; pdm install -d -G pandas | |
- name: Python client integration tests | |
run: cd datajunction-clients/python && make test PYTEST_ARGS="--integration -k test_integration" | |
javascript-client-integration: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build and launch DJ demo environment | |
run: docker-compose --profile demo up -d | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dev Dependencies | |
run: npm install --only=dev | |
working-directory: ./datajunction-clients/javascript | |
- name: Javascript client integration tests | |
run: npm test | |
working-directory: ./datajunction-clients/javascript | |
java-client-integration: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ 17 ] | |
distribution: [ 'temurin' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build and launch DJ demo environment | |
run: docker-compose --profile demo up -d | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: ${{ matrix.distribution }} | |
- name: Official Gradle Wrapper Validation Action | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: cleanTest test | |
build-root-directory: ./datajunction-clients/java | |