Skip to content

Commit

Permalink
disabled code cov workflow (#1364)
Browse files Browse the repository at this point in the history
disabled
  • Loading branch information
Haaroon authored Nov 6, 2023
1 parent 834be7d commit f9b78a6
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 103 deletions.
192 changes: 96 additions & 96 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
@@ -1,97 +1,97 @@
name: Code Coverage
on:
workflow_call:
inputs:
skip_tests:
type: boolean
default: false
required: false
# DO NOT CHANGE NAME OF WORKFLOW, USED IN OTHER WORKFLOWS KEEP "Rust Tests"
jobs:
code-coverage:
if: ${{ !inputs.skip_tests }}
name: Code Coverage
runs-on: ubuntu-latest
env:
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: 2G
SCCACHE_DIR: /home/runner/.cache/sccache
SCCACHE_PATH: /home/runner/.cache/sccache
steps:
- uses: actions/checkout@v3
name: Checkout
- name: Cache sccache
uses: actions/cache@v3
with:
path: /home/runner/.cache/sccache
key: codecov-${{ runner.os }}-sccache-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
codecov-${{ runner.os }}-sccache-
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/debug
target/release
key: codecov-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-coverage
restore-keys: codecov-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-coverage
- uses: actions-rs/toolchain@v1
name: Setup Rust
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Install sccache (Ubuntu)
run: |
curl -L https://github.com/mozilla/sccache/releases/download/v0.5.4/sccache-v0.5.4-x86_64-unknown-linux-musl.tar.gz | tar xz
sudo mv sccache-v0.5.4-x86_64-unknown-linux-musl/sccache /usr/local/bin/
- name: Start sccache server
run: sccache --start-server
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip'
- name: Run Maturin develop
uses: PyO3/maturin-action@v1
with:
working-directory: ./python
command: build
sccache: true
- name: Install Python dependencies
run: |
python -m pip install -q pytest networkx numpy seaborn pandas nbmake pytest-xdist matplotlib pyvis pytest-cov coverage
python -m pip install target/wheels/raphtory-*.whl
- name: Run tests (rust)
run: cargo test -p raphtory --features "io python"
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
- name: Run tests (python)
run: cargo test -p raphtory-pymodule --no-default-features
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
- id: coveragerust
name: Run rust tests (rust-grcov) and collect coverage
uses: actions-rs/[email protected]
- name: Run python tests and collect coverage
run: cd python/tests && pytest --cov=./ --cov-report=xml
- name: Codecov
uses: codecov/[email protected]
with:
verbose: true
fail_ci_if_error: false
files: ./coverage.xml, ${{ steps.coveragerust.outputs.report }}
- name: Print sccache stats
run: sccache --show-stats
- name: Stop sccache server
run: sccache --stop-server || true
# name: Code Coverage
# on:
# workflow_call:
# inputs:
# skip_tests:
# type: boolean
# default: false
# required: false
# # DO NOT CHANGE NAME OF WORKFLOW, USED IN OTHER WORKFLOWS KEEP "Rust Tests"
# jobs:
# code-coverage:
# if: ${{ !inputs.skip_tests }}
# name: Code Coverage
# runs-on: ubuntu-latest
# env:
# RUSTC_WRAPPER: sccache
# SCCACHE_CACHE_SIZE: 2G
# SCCACHE_DIR: /home/runner/.cache/sccache
# SCCACHE_PATH: /home/runner/.cache/sccache
# steps:
# - uses: actions/checkout@v3
# name: Checkout
# - name: Cache sccache
# uses: actions/cache@v3
# with:
# path: /home/runner/.cache/sccache
# key: codecov-${{ runner.os }}-sccache-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# codecov-${{ runner.os }}-sccache-
# - name: Set up cargo cache
# uses: actions/cache@v3
# continue-on-error: false
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/debug
# target/release
# key: codecov-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-coverage
# restore-keys: codecov-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-coverage
# - uses: actions-rs/toolchain@v1
# name: Setup Rust
# with:
# toolchain: nightly
# override: true
# components: rustfmt, clippy
# - name: Install sccache (Ubuntu)
# run: |
# curl -L https://github.com/mozilla/sccache/releases/download/v0.5.4/sccache-v0.5.4-x86_64-unknown-linux-musl.tar.gz | tar xz
# sudo mv sccache-v0.5.4-x86_64-unknown-linux-musl/sccache /usr/local/bin/
# - name: Start sccache server
# run: sccache --start-server
# - name: Setup Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# cache: 'pip'
# - name: Run Maturin develop
# uses: PyO3/maturin-action@v1
# with:
# working-directory: ./python
# command: build
# sccache: true
# - name: Install Python dependencies
# run: |
# python -m pip install -q pytest networkx numpy seaborn pandas nbmake pytest-xdist matplotlib pyvis pytest-cov coverage
# python -m pip install target/wheels/raphtory-*.whl
# - name: Run tests (rust)
# run: cargo test -p raphtory --features "io python"
# env:
# CARGO_INCREMENTAL: '0'
# RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
# RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
# - name: Run tests (python)
# run: cargo test -p raphtory-pymodule --no-default-features
# env:
# CARGO_INCREMENTAL: '0'
# RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
# RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
# - id: coveragerust
# name: Run rust tests (rust-grcov) and collect coverage
# uses: actions-rs/[email protected]
# - name: Run python tests and collect coverage
# run: cd python/tests && pytest --cov=./ --cov-report=xml
# - name: Codecov
# uses: codecov/[email protected]
# with:
# verbose: true
# fail_ci_if_error: false
# files: ./coverage.xml, ${{ steps.coveragerust.outputs.report }}
# - name: Print sccache stats
# run: sccache --show-stats
# - name: Stop sccache server
# run: sccache --stop-server || true

6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
name: Run benchmarks
uses: ./.github/workflows/benchmark.yml
secrets: inherit
call-code-coverage:
name: Code Coverage
uses: ./.github/workflows/code_coverage.yml
# call-code-coverage:
# name: Code Coverage
# uses: ./.github/workflows/code_coverage.yml
8 changes: 4 additions & 4 deletions .github/workflows/test_during_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
uses: ./.github/workflows/benchmark.yml
secrets: inherit
needs: rust-format-check
call-code-coverage:
name: Code Coverage
uses: ./.github/workflows/code_coverage.yml
needs: rust-format-check
# call-code-coverage:
# name: Code Coverage
# uses: ./.github/workflows/code_coverage.yml
# needs: rust-format-check

0 comments on commit f9b78a6

Please sign in to comment.