diff --git a/.github/workflows/action-dispatch.yml b/.github/workflows/action-dispatch.yml new file mode 100644 index 0000000000..83e9699310 --- /dev/null +++ b/.github/workflows/action-dispatch.yml @@ -0,0 +1,41 @@ +name: action-dispatch + +on: + workflow_dispatch: + # push: + # branches: + # - '*' + # pull_request: + # branches: + # - '*' + +run-name: ${{ github.actor }} is testing out Actions 🚀 + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: Generate token from GitHub App + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + owner: ERGO-Code + repositories: tests + + - name: Trigger the automated test in another repo + uses: peter-evans/repository-dispatch@v4 + with: + token: ${{ steps.generate-token.outputs.token }} + repository: ERGO-Code/tests + event-type: highs-mip-tests + client-payload: | + { + "repository": "${{ github.repository }}", + "ref": "${{ github.ref }}", + "sha": "${{ github.sha }}" + } + + - name: my-step + run: echo "${{ github.actor }} Hello automations!" \ No newline at end of file diff --git a/.github/workflows/sanitizers-bazel.yml b/.github/workflows/action-sanitizers-bazel.yml similarity index 56% rename from .github/workflows/sanitizers-bazel.yml rename to .github/workflows/action-sanitizers-bazel.yml index 70770dc8cd..e29a21624b 100644 --- a/.github/workflows/sanitizers-bazel.yml +++ b/.github/workflows/action-sanitizers-bazel.yml @@ -1,7 +1,6 @@ -name: sanitizers-bazel +name: action-sanitizers-bazel -#on: [push, pull_request] -on: [] +on: workflow_dispatch jobs: asan: @@ -17,18 +16,18 @@ jobs: - name: Bazel clean run: bazel clean - + - name: Bazel build run: bazel build -c dbg --config=asan //... - + - name: Bazel test - run: bazel test -c dbg --config=asan --runs_per_test 100 //... + run: bazel test -c dbg --config=asan --runs_per_test 3000 //... - - name: Upload bazel-testlogs - uses: actions/upload-artifact@v4 - with: - name: bazel-testlogs-asan - path: bazel-testlogs/ + # - name: Upload bazel-testlogs + # uses: actions/upload-artifact@v4 + # with: + # name: bazel-testlogs-asan + # path: bazel-testlogs/ tsan: runs-on: ${{ matrix.os }} @@ -43,19 +42,19 @@ jobs: - name: Bazel clean run: bazel clean - + - name: Bazel build run: bazel build -c dbg --config=tsan //... - + - name: Bazel test - run: bazel test -c dbg --config=tsan --runs_per_test 100 //... - - - name: Upload bazel-testlogs - uses: actions/upload-artifact@v4 - with: - name: bazel-testlogs-tsan - path: bazel-testlogs/ - + run: bazel test -c dbg --config=tsan --runs_per_test 3000 //... + + # - name: Upload bazel-testlogs + # uses: actions/upload-artifact@v4 + # with: + # name: bazel-testlogs-tsan + # path: bazel-testlogs/ + lsan: runs-on: ${{ matrix.os }} strategy: @@ -69,19 +68,19 @@ jobs: - name: Bazel clean run: bazel clean - + - name: Bazel build run: bazel build -c dbg --config=lsan //... - + - name: Bazel test - run: bazel test -c dbg --config=lsan --runs_per_test 100 //... - - - name: Upload bazel-testlogs - uses: actions/upload-artifact@v4 - with: - name: bazel-testlogs-lsan - path: bazel-testlogs/ - + run: bazel test -c dbg --config=lsan --runs_per_test 3000 //... + + # - name: Upload bazel-testlogs + # uses: actions/upload-artifact@v4 + # with: + # name: bazel-testlogs-lsan + # path: bazel-testlogs/ + ubsan: runs-on: ${{ matrix.os }} strategy: @@ -95,15 +94,15 @@ jobs: - name: Bazel clean run: bazel clean - + - name: Bazel build run: bazel build -c dbg --config=ubsan //... - + - name: Bazel test - run: bazel test -c dbg --config=ubsan --runs_per_test 100 //... + run: bazel test -c dbg --config=ubsan --runs_per_test 3000 //... - - name: Upload bazel-testlogs - uses: actions/upload-artifact@v4 - with: - name: bazel-testlogs-ubsan - path: bazel-testlogs/ + # - name: Upload bazel-testlogs + # uses: actions/upload-artifact@v4 + # with: + # name: bazel-testlogs-ubsan + # path: bazel-testlogs/ diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index d22309a96e..f8d5a379c2 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -1,6 +1,6 @@ name: build-macos -on: [push, pull_request] +on: [pull_request] jobs: debug: diff --git a/.github/workflows/build-nuget-package.yml b/.github/workflows/build-nuget-package.yml index 908402b0cb..56230e5efd 100644 --- a/.github/workflows/build-nuget-package.yml +++ b/.github/workflows/build-nuget-package.yml @@ -1,6 +1,6 @@ name: build-nuget-package -on: [push, pull_request] +on: [pull_request] concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/build-python-sdist.yml b/.github/workflows/build-python-sdist.yml index 914f46fe1c..b6cd041062 100644 --- a/.github/workflows/build-python-sdist.yml +++ b/.github/workflows/build-python-sdist.yml @@ -1,6 +1,6 @@ name: build-python-sdist -on: [push, pull_request] +on: [pull_request] jobs: build_sdist_ubuntu: diff --git a/.github/workflows/cmake-macos-cpp.yml b/.github/workflows/cmake-macos-cpp.yml index d44c26a9a4..af5c529ff8 100644 --- a/.github/workflows/cmake-macos-cpp.yml +++ b/.github/workflows/cmake-macos-cpp.yml @@ -1,6 +1,6 @@ name: cmake-macos-cpp -on: [push, pull_request] +on: [pull_request] jobs: release: diff --git a/.github/workflows/release-cpack.yml b/.github/workflows/release-cpack.yml index 12a679e8f8..f5c5b5aa59 100644 --- a/.github/workflows/release-cpack.yml +++ b/.github/workflows/release-cpack.yml @@ -2,8 +2,9 @@ name: release-cpack on: push: - # tags: - # - 'v*' + tags: + - 'v*' + pull_request: jobs: build-linux: diff --git a/.github/workflows/test-fortran-macos.yml b/.github/workflows/test-fortran-macos.yml index 3ecf6d8edb..d610a042e4 100644 --- a/.github/workflows/test-fortran-macos.yml +++ b/.github/workflows/test-fortran-macos.yml @@ -1,6 +1,6 @@ name: test-fortran-macos -on: [push, pull_request] +on: [pull_request] jobs: fast_build_release: diff --git a/.github/workflows/test-nuget-macos.yml b/.github/workflows/test-nuget-macos.yml index 68ab2cffc9..7ddce775f2 100644 --- a/.github/workflows/test-nuget-macos.yml +++ b/.github/workflows/test-nuget-macos.yml @@ -1,6 +1,6 @@ name: test-nuget-macos -on: [push, pull_request] +on: [pull_request] concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/test-python-macos.yml b/.github/workflows/test-python-macos.yml index 568068149b..0e831a9f50 100644 --- a/.github/workflows/test-python-macos.yml +++ b/.github/workflows/test-python-macos.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [macos-latest] - python: [3.12, 3.14] + python: [3.14] steps: - uses: actions/checkout@v4