Skip to content

Commit

Permalink
Divide tests to correct packages
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschulz-COL committed Nov 1, 2023
1 parent eaff55b commit ba39803
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: lint-vizro-ai
name: checks-vizro-ai
defaults:
run:
working-directory: vizro-ai

on:
push:
branches: [main]
paths:
- "vizro-ai/**"
pull_request:
branches:
- "main"
paths:
- "vizro-ai/**"

concurrency:
group: lint-${{ github.head_ref }}
group: checks-${{ github.head_ref }}
cancel-in-progress: true

env:
Expand Down Expand Up @@ -42,9 +46,6 @@ jobs:
- name: List dependencies
run: hatch run all.py${{ matrix.python-version }}:pip freeze

- name: Lint
run: hatch run all.py${{ matrix.python-version }}:lint

- name: Check requirements for Snyk are up to date
run: |
pwd
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint-vizro-core
name: checks-vizro-core

defaults:
run:
Expand All @@ -7,12 +7,16 @@ defaults:
on:
push:
branches: [main]
paths:
- "vizro-core/**"
pull_request:
branches:
- "main"
paths:
- "vizro-core/**"

concurrency:
group: lint-${{ github.head_ref }}
group: checks-${{ github.head_ref }}
cancel-in-progress: true

env:
Expand Down Expand Up @@ -43,9 +47,6 @@ jobs:
- name: List dependencies
run: hatch run all.py${{ matrix.python-version }}:pip freeze

- name: Lint
run: hatch run all.py${{ matrix.python-version }}:lint

- name: Check schema is up to date
run: hatch run all.py${{ matrix.python-version }}:schema --check

Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/lint-vizro-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: lint-vizro-all

defaults:
run:
working-directory: vizro-core # but could be any folder

on:
push:
branches: [main]
pull_request:
branches:
- "main"

concurrency:
group: lint-${{ github.head_ref }}
cancel-in-progress: true

env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"

jobs:
run:
name: Python ${{ matrix.python-version }} on Linux
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Hatch
run: pip install --upgrade hatch

- name: List dependencies
run: hatch run all.py${{ matrix.python-version }}:pip freeze

- name: Lint
run: hatch run all.py${{ matrix.python-version }}:lint
2 changes: 2 additions & 0 deletions .github/workflows/test-integration-vizro-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ defaults:
on:
push:
branches: [main]
paths:
- "vizro-core/src/**"
pull_request:
branches:
- "main"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-unit-vizro-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ defaults:
on:
push:
branches: [main]
paths:
- "vizro-core/src/**"
pull_request:
branches:
- "main"
paths:
- "vizro-core/src/**"

concurrency:
group: test-unit-${{ github.head_ref }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-unit-vizro-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ defaults:
on:
push:
branches: [main]
paths:
- "vizro-core/src/**"
pull_request:
branches:
- "main"
Expand Down

0 comments on commit ba39803

Please sign in to comment.