瀏覽代碼

Run tests with new dependencies available (#789)

Vuillemot Florian 1 年之前
父節點
當前提交
d4a81c7ddb
共有 2 個文件被更改,包括 15 次插入0 次删除
  1. 14 0
      .github/workflows/dependencies-management.yml
  2. 1 0
      .github/workflows/overall-tests.yml

+ 14 - 0
.github/workflows/dependencies-management.yml

@@ -57,3 +57,17 @@ jobs:
           add-paths: |
             tools/packages/pipfiles/Pipfile${{matrix.python-version}}.max
             tools/packages/taipy*/*requirements.txt
+
+      # PRs created with the GITHUB_TOKEN don't trigger workflows.
+      # This action triggers the overall-tests.yml workflow on the PR
+      # to allow the tests to run on the new dependencies.
+      - name: Run tests on PR
+        uses: actions/github-script@v6
+        with:
+          script: |
+            github.rest.actions.createWorkflowDispatch({
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              workflow_id: 'overall-tests.yml',
+              ref: 'dependencies/update-python${{matrix.python-version}}',
+            })

+ 1 - 0
.github/workflows/overall-tests.yml

@@ -5,6 +5,7 @@ on:
     branches: [ develop, dev/*, release/* ]
   pull_request:
     branches: [ develop, dev/*, release/* ]
+  workflow_dispatch:
 
 jobs:
   partial-tests: