chore: Update UI tests workflow to comment out unused steps

This commit is contained in:
Théophile Diot 2024-08-13 13:06:35 +01:00
parent 67e3d3c9f3
commit b9e0e55ea5
No known key found for this signature in database
GPG key ID: FA995104A0BA376A
2 changed files with 37 additions and 34 deletions

View file

@ -76,37 +76,37 @@ jobs:
security-events: write
# UI tests
prepare-tests-ui:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- id: set-matrix
run: |
tests=$(find ./tests/ui/ -name "*_page.py" -type f -printf "%f\n" | jq -c --raw-input --slurp 'split("\n")| .[0:-1]')
echo "tests=$tests" >> $GITHUB_OUTPUT
outputs:
tests: ${{ steps.set-matrix.outputs.tests }}
tests-ui:
needs: [prepare-tests-ui, build-containers]
strategy:
fail-fast: false
matrix:
test: ${{ fromJson(needs.prepare-tests-ui.outputs.tests) }}
uses: ./.github/workflows/tests-ui.yml
with:
TEST: ${{ matrix.test }}
RELEASE: dev
tests-ui-linux:
needs: [prepare-tests-ui, build-packages]
strategy:
fail-fast: false
matrix:
test: ${{ fromJson(needs.prepare-tests-ui.outputs.tests) }}
uses: ./.github/workflows/tests-ui-linux.yml
with:
TEST: ${{ matrix.test }}
RELEASE: dev
# prepare-tests-ui: # TODO: Uncomment when UI tests are back
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# - id: set-matrix
# run: |
# tests=$(find ./tests/ui/ -name "*_page.py" -type f -printf "%f\n" | jq -c --raw-input --slurp 'split("\n")| .[0:-1]')
# echo "tests=$tests" >> $GITHUB_OUTPUT
# outputs:
# tests: ${{ steps.set-matrix.outputs.tests }}
# tests-ui:
# needs: [prepare-tests-ui, build-containers]
# strategy:
# fail-fast: false
# matrix:
# test: ${{ fromJson(needs.prepare-tests-ui.outputs.tests) }}
# uses: ./.github/workflows/tests-ui.yml
# with:
# TEST: ${{ matrix.test }}
# RELEASE: dev
# tests-ui-linux:
# needs: [prepare-tests-ui, build-packages]
# strategy:
# fail-fast: false
# matrix:
# test: ${{ fromJson(needs.prepare-tests-ui.outputs.tests) }}
# uses: ./.github/workflows/tests-ui-linux.yml
# with:
# TEST: ${{ matrix.test }}
# RELEASE: dev
# Core tests
prepare-tests-core:
@ -144,7 +144,8 @@ jobs:
# Push with dev tag
push-dev:
needs: [tests-ui, tests-core]
# needs: [tests-ui, tests-core] # TODO: Uncomment when UI tests are back
needs: [tests-core]
runs-on: ubuntu-latest
permissions:
contents: read
@ -184,7 +185,8 @@ jobs:
# Push Linux packages
push-packages:
needs: [tests-ui-linux, tests-core-linux]
# needs: [tests-ui-linux, tests-core-linux] # TODO: Uncomment when UI tests are back
needs: [tests-core-linux]
strategy:
matrix:
linux: [ubuntu, debian, fedora, el, el9, ubuntu-jammy]

View file

@ -135,7 +135,8 @@ def add_builder_and_widgets():
if run_command(["/usr/bin/python3", "widgets_generator.py"], current_directory):
if run_command(["python3", "widgets_generator.py"], current_directory):
if run_command(["python", "widgets_generator.py"], current_directory):
exit(1)
if run_command(["/usr/bin/python3.9", "widgets_generator.py"], current_directory):
exit(1)
# Create output folders
copytree(builder_dir_pages.as_posix(), ui_dir_builder.as_posix())