Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yutannihilation committed Nov 4, 2023
1 parent 1d48431 commit f22c2de
Showing 1 changed file with 11 additions and 31 deletions.
42 changes: 11 additions & 31 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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.
Expand All @@ -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

Expand All @@ -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'
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit f22c2de

Please sign in to comment.