Build backend #30
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: build backend | |
on: | |
push: | |
paths: | |
- 'package/**' | |
- '.circleci/**' | |
pull_request: | |
paths: | |
- 'package/**' | |
- '.circleci/**' | |
workflow_dispatch: | |
env: | |
AWS_REGION: xxxxst-2 | |
CACHE_VERSION: xxxx | |
NPM_TOKEN: xxxx5775 | |
SNYK_TOKEN: xxxxa727 | |
TWINE_NON_INTERACTIVE: xxxx | |
TWINE_PASSWORD: xxxxi3Xc | |
TWINE_REPOSITORY_URL: xxxxacy/ | |
TWINE_USERNAME: xxxxen__ | |
jobs: | |
e2e_tests: | |
strategy: | |
matrix: | |
os: [ windows-latest, ubuntu-latest ] | |
python-version: [ "3.9", "3.10", "3.11" ] | |
uses: ./.github/workflows/e2e-tests.yml | |
with: | |
os: ${{ matrix.os }} | |
python-version: ${{ matrix.python-version }} | |
# e2e_tests: | |
# runs-on: ubuntu-latest | |
# container: | |
# image: cimg/python:${{ matrix.python_version }}-node | |
# strategy: | |
# matrix: | |
# python_version: | |
# - '3.9' | |
# - '3.10' | |
# - '3.11' | |
# steps: | |
# - uses: actions/[email protected] | |
# - uses: "./.github/actions/setup_python_env" | |
# - uses: "./.github/actions/install_node_dependencies" | |
# - uses: "./.github/actions/npm_build" | |
# - name: Run all end to end tests | |
# run: make e2e-tests | |
win_e2e_tests: | |
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/demo' | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python_version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/win_setup" | |
with: | |
python_version: "${{ matrix.python_version }}" | |
- name: Run all end to end tests on Windows | |
run: | | |
conda activate kedro-viz | |
make e2e-tests | |
unit_tests: | |
runs-on: ubuntu-latest | |
container: | |
image: cimg/python:${{ matrix.python_version }}-node | |
strategy: | |
matrix: | |
python_version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/setup_python_env" | |
- uses: "./.github/actions/install_node_dependencies" | |
- uses: "./.github/actions/npm_build" | |
- name: Run Python tests | |
run: make pytest | |
win_unit_tests: | |
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/demo' | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python_version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/win_setup" | |
with: | |
python_version: "${{ matrix.python_version }}" | |
- name: Run Python tests on Windows | |
run: | | |
conda activate kedro-viz | |
make pytest | |
lint: | |
runs-on: ubuntu-latest | |
container: | |
image: cimg/python:${{ matrix.python_version }}-node | |
strategy: | |
matrix: | |
python_version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
steps: | |
- uses: actions/[email protected] | |
- uses: "./.github/actions/setup_python_env" | |
- name: Run secret scan | |
run: make secret-scan | |
- name: Run security scan | |
run: make security-scan | |
- name: Verify GraphQL schema is up to date | |
run: make schema-check | |
- name: Run Python formatters and linters | |
run: make format-check lint-check |