Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Int Test #222

Merged
merged 4 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Integration Tests CI

on:
workflow_dispatch:

jobs:
python_integration_test:
name: Python Integration Test
runs-on: ubuntu-20.04
defaults:
run:
working-directory: python
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: "pip"
- name: Install poetry
run: pipx install poetry==1.4.2
- name: Install dependencies
run: poetry install
- name: Run Python integration tests
uses: ./.github/actions/python-integration-tests
with:
python-version: 3.11
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}

js_integration_test:
name: JS Integration Test
runs-on: ubuntu-20.04
defaults:
run:
working-directory: js
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
cache-dependency-path: "js/yarn.lock"
- name: Install dependencies
run: yarn install --immutable
- name: Run JS integration tests
uses: ./.github/actions/js-integration-tests
with:
node-version: 18.x
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
19 changes: 1 addition & 18 deletions .github/workflows/js_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,4 @@ jobs:
- name: Build
run: yarn run build
- name: Test
run: yarn run test

# integration_test:
# needs: build
# runs-on: ubuntu-20.04
# if: >
# (github.event_name == 'push' && github.ref == 'refs/heads/main') ||
# (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'release')) ||
# (github.event_name == 'workflow_dispatch' && github.event.inputs.run_integration_tests == 'true')
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Run JS integration tests
# uses: ./.github/actions/js-integration-tests
# with:
# node-version: 18.x
# docker_username: ${{ secrets.DOCKER_USERNAME }}
# docker_password: ${{ secrets.DOCKER_PASSWORD }}
run: yarn run test
26 changes: 1 addition & 25 deletions .github/workflows/python_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ on:
paths:
- "python/**"
workflow_dispatch:
inputs:
run_integration_tests:
description: "Run integration tests"
default: "false"
options: ["true", "false"]

env:
POETRY_VERSION: "1.4.2"
Expand All @@ -25,8 +20,6 @@ jobs:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
defaults:
run:
Expand Down Expand Up @@ -82,21 +75,4 @@ jobs:
run: poetry install
- name: Run tests
run: make tests
shell: bash

# integration_test:
# needs: build
# runs-on: ubuntu-20.04
# if: >
# (github.event_name == 'push' && github.ref == 'refs/heads/main') ||
# (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'release')) ||
# (github.event_name == 'workflow_dispatch' && github.event.inputs.run_integration_tests == 'true')
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Run integration tests
# uses: ./.github/actions/python-integration-tests
# with:
# python-version: ${{ needs.build.outputs.python-version }}
# docker_username: ${{ secrets.DOCKER_USERNAME }}
# docker_password: ${{ secrets.DOCKER_PASSWORD }}
shell: bash