Manual : Run client integration tests #857
This file contains hidden or 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 | |
| uses: hoverkraft-tech/[email protected] | |
| with: | |
| compose-file: "./docker-compose.yml" | |
| services: | | |
| dj | |
| postgres_metadata | |
| db-migration | |
| db-seed | |
| djqs | |
| djqs-db-migration | |
| djrs-redis | |
| djrs-worker | |
| djrs-beat | |
| dj-trino | |
| - 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 | |
| uses: hoverkraft-tech/[email protected] | |
| with: | |
| compose-file: "./docker-compose.yml" | |
| services: | | |
| dj | |
| postgres_metadata | |
| db-migration | |
| db-seed | |
| djqs | |
| djqs-db-migration | |
| djrs-redis | |
| djrs-worker | |
| djrs-beat | |
| dj-trino | |
| - 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 | |
| uses: hoverkraft-tech/[email protected] | |
| with: | |
| compose-file: "./docker-compose.yml" | |
| services: | | |
| dj | |
| postgres_metadata | |
| db-migration | |
| db-seed | |
| djqs | |
| djqs-db-migration | |
| djrs-redis | |
| djrs-worker | |
| djrs-beat | |
| dj-trino | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| distribution: ${{ matrix.distribution }} | |
| - name: Build with Gradle | |
| uses: gradle/gradle-build-action@v3 | |
| with: | |
| arguments: cleanTest test | |
| build-root-directory: ./datajunction-clients/java | |