Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
l0r1s committed Sep 27, 2023
1 parent 8bfdec7 commit db7ff21
Showing 1 changed file with 37 additions and 32 deletions.
69 changes: 37 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,35 +40,40 @@ jobs:
- name: Tests (except provider crate)
run: cargo test --workspace --exclude provider

- name: Tests (provider crate)
# there should be a unique test thread for native provider tests (asserting spawned processes count)
run: cargo test -p provider -- --test-threads 1

coverage:
name: Zombienet SDK - coverage
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'

permissions:
issues: write
pull-requests: write

steps:
- uses: actions/checkout@v3

- name: Install latest nextest release
uses: taiki-e/install-action@nextest

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Collect coverage data
# there should be a unique test thread for native provider tests (asserting spawned processes count)
run: cargo llvm-cov nextest -j 1 --lcov --output-path lcov.info

- name: Report code coverage
uses: Nef10/[email protected]
with:
lcov-file: lcov.info
pr-number: ${{ github.event.pull_request.number }}
- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
limit-access-to-users: l0r1s

# - name: Tests (provider crate)
# # there should be a unique test thread for native provider tests (asserting spawned processes count)
# run: cargo test -p provider -- --test-threads 1

# coverage:
# name: Zombienet SDK - coverage
# needs: build
# runs-on: ubuntu-latest
# if: github.event_name == 'pull_request'

# permissions:
# issues: write
# pull-requests: write

# steps:
# - uses: actions/checkout@v3

# - name: Install latest nextest release
# uses: taiki-e/install-action@nextest

# - name: Install cargo-llvm-cov
# uses: taiki-e/install-action@cargo-llvm-cov

# - name: Collect coverage data
# # there should be a unique test thread for native provider tests (asserting spawned processes count)
# run: cargo llvm-cov nextest -j 1 --lcov --output-path lcov.info

# - name: Report code coverage
# uses: Nef10/[email protected]
# with:
# lcov-file: lcov.info
# pr-number: ${{ github.event.pull_request.number }}

0 comments on commit db7ff21

Please sign in to comment.