diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 39bbca7f..4c253116 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,20 +3,7 @@ name: Tests on: push: branches: - - main - - master - pull_request: - branches: - - main - - master - issue_comment: - types: - - created - # Run this once per three days - schedule: - - cron: '29 17 */3 * *' - # This can also manually run - workflow_dispatch: {} + - tmp-* jobs: @@ -226,13 +213,13 @@ jobs: path: generated_bindings # Run tests again using different bindings - - name: Run tests on precomputed bindings shipped with libR-sys - if: matrix.config.skip-tests != 'true' - run: | - . ./ci-cargo.ps1 - ci-cargo test -vv $(if ($env:RUST_TARGET -ne '') {"--target=$env:RUST_TARGET"} ) '--' --nocapture --test-threads=1 -ActionName "Running tests for target: $env:RUST_TARGET" - env: - RUST_TARGET: ${{ matrix.config.target }} + # - name: Run tests on precomputed bindings shipped with libR-sys + # if: matrix.config.skip-tests != 'true' + # run: | + # . ./ci-cargo.ps1 + # ci-cargo test -vv $(if ($env:RUST_TARGET -ne '') {"--target=$env:RUST_TARGET"} ) '--' --nocapture --test-threads=1 -ActionName "Running tests for target: $env:RUST_TARGET" + # env: + # RUST_TARGET: ${{ matrix.config.target }} # Gather the generated bindings and push them to generated_bindings branch. # If we need to update the bindings, create a pull request from that branch. @@ -242,7 +229,7 @@ jobs: # In the case of /bindings command, we don't need to check anything else # because it should have checked in test_with_bindings job. In the other # cases, we only want to invoke this on the master branch. - if: github.event_name == 'issue_comment' || github.ref == 'refs/heads/master' + # if: github.event_name == 'issue_comment' || github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v2 @@ -251,14 +238,7 @@ jobs: - name: Switch branch if: github.event_name != 'issue_comment' run: | - # 1) If there's already generated_bindings branch, checkout it. - # 2) If generated_binding branch is not created, create it from the default branch. - if git ls-remote --exit-code --heads origin generated_bindings 2>&1 >/dev/null; then - git fetch origin --no-tags --prune --depth=1 generated_bindings - git checkout generated_bindings - else - git switch -c generated_bindings - fi + git switch -c generated_bindings_debug - name: Switch branch (/bindings command) if: github.event_name == 'issue_comment' @@ -292,7 +272,7 @@ jobs: - name: Push if: github.event_name != 'issue_comment' - run: git push origin generated_bindings + run: git push origin generated_bindings_debug - name: Push (/bindings command) if: github.event_name == 'issue_comment'