-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83b6899
commit 42f8bb5
Showing
9 changed files
with
1,285 additions
and
1,276 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Test Workflow | ||
|
||
on: | ||
push: | ||
branches: [ develop, dev/*, release/* ] | ||
pull_request: | ||
branches: [ develop, dev/*, release/* ] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# replace for Ruff in the future | ||
- uses: ricardochaves/[email protected] | ||
with: | ||
use-pylint: false | ||
use-isort: false | ||
use-mypy: false | ||
extra-black-options: "--line-length=120 --diff" | ||
extra-pycodestyle-options: "--max-line-length=120 --exclude=tests/gui --ignore=E121,E123,E126,E226,E24,E704,W503,W504,E203" | ||
extra-mypy-options: "--ignore-missing-imports --implicit-optional --no-namespace-packages --exclude (taipy/templates/|generate_pyi.py) --follow-imports skip" | ||
extra-isort-options: "--line-length=120 --force-grid-wrap=10 --multi-line=VERTICAL_HANGING_INDENT --trailing-comma" | ||
tests: | ||
needs: lint | ||
timeout-minutes: 40 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
os: [macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install pipenv | ||
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python | ||
- run: python -m pipenv install --dev | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Setup LibMagic (MacOS) | ||
if: matrix.os == 'macos-latest' | ||
run: brew install libmagic | ||
|
||
- name: Frontend Bundle Build | ||
run: pipenv run python tools/frontend/bundle_build.py | ||
|
||
- name: Install Playwright | ||
run: pipenv run playwright install chromium --with-deps | ||
|
||
- name: Pytest | ||
run: pipenv run pytest --cov=taipy --cov-append --cov-report=xml --cov-report term-missing tests | ||
|
||
- name: Notify user if failed | ||
if: failure() && github.event_name == 'workflow_dispatch' | ||
run: | | ||
if [[ -n "${{ github.event.inputs.user-to-notify }}" ]]; then | ||
curl "${{ secrets.notify_endpoint }}" -d '{"username": "${{ github.event.inputs.user-to-notify }}", "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }' -H "Content-Type: application/json" | ||
fi | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
name: Python tests | ||
|
||
on: | ||
push: | ||
branches: [ develop, dev/*, release/* ] | ||
pull_request: | ||
branches: [ develop, dev/*, release/* ] | ||
|
||
jobs: | ||
backend: | ||
timeout-minutes: 40 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-versions: ['3.8', '3.9', '3.10', '3.11'] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-versions }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
|
||
- name: install libmagic on macos | ||
if: matrix.os == 'macos-latest' | ||
run: brew install libmagic | ||
|
||
- name: Tests | ||
if: matrix.os != 'windows-latest' || matrix.python-versions != '3.8' | ||
run: | | ||
pip install tox | ||
tox -e tests | ||
- name: Notify user if failed | ||
if: failure() && github.event_name == 'workflow_dispatch' | ||
run: | | ||
if [[ -n "${{ github.event.inputs.user-to-notify }}" ]]; then | ||
curl "${{ secrets.notify_endpoint }}" -d '{"username": "${{ github.event.inputs.user-to-notify }}", "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }' -H "Content-Type: application/json" | ||
fi | ||
shell: bash | ||
#name: Python tests | ||
# | ||
#on: | ||
# push: | ||
# branches: [ develop, dev/*, release/* ] | ||
# pull_request: | ||
# branches: [ develop, dev/*, release/* ] | ||
# | ||
#jobs: | ||
# backend: | ||
# timeout-minutes: 40 | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# python-versions: ['3.8', '3.9', '3.10', '3.11'] | ||
# os: [ubuntu-latest, windows-latest, macos-latest] | ||
# runs-on: ${{ matrix.os }} | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: ${{ matrix.python-versions }} | ||
# - uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: '20' | ||
# | ||
# | ||
# - name: install libmagic on macos | ||
# if: matrix.os == 'macos-latest' | ||
# run: brew install libmagic | ||
# | ||
# - name: Tests | ||
# if: matrix.os != 'windows-latest' || matrix.python-versions != '3.8' | ||
# run: | | ||
# pip install tox | ||
# tox -e tests | ||
# | ||
# - name: Notify user if failed | ||
# if: failure() && github.event_name == 'workflow_dispatch' | ||
# run: | | ||
# if [[ -n "${{ github.event.inputs.user-to-notify }}" ]]; then | ||
# curl "${{ secrets.notify_endpoint }}" -d '{"username": "${{ github.event.inputs.user-to-notify }}", "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }' -H "Content-Type: application/json" | ||
# fi | ||
# shell: bash |
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
Oops, something went wrong.