Skip to content

Commit

Permalink
Merge branch 'main' into docstring-sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
average-gary authored Oct 19, 2024
2 parents 4902f16 + b8e7715 commit 0eb7c0c
Show file tree
Hide file tree
Showing 91 changed files with 3,653 additions and 1,158 deletions.
146 changes: 146 additions & 0 deletions .github/workflows/coverage-protocols.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
name: Protocol test Coverage

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
protocols-coverage:

name: tarpaulin Test
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:0.27.1-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Generate code coverage
run: |
./scripts/coverage-protocols.sh
- name: Upload protocols coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports
file: ./protocols/target/tarpaulin-reports/cobertura.xml
flags: protocols
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload binary_codec_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/codec-coverage
file: ./protocols/target/tarpaulin-reports/codec-coverage/cobertura.xml
flags: binary_codec_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload binary_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/binary-sv2-coverage
file: ./protocols/target/tarpaulin-reports/binary-sv2-coverage/cobertura.xml
flags: binary_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload binary_serde_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/serde-sv2-coverage
file: ./protocols/target/tarpaulin-reports/serde-sv2-coverage/cobertura.xml
flags: binary_serde_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload codec_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/codec-sv2-coverage
file: ./protocols/target/tarpaulin-reports/codec-sv2-coverage/cobertura.xml
flags: codec_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload common_messages_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/common-messages-coverage
file: ./protocols/target/tarpaulin-reports/common-messages-coverage/cobertura.xml
flags: common_messages_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload const_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/const-sv2-coverage
file: ./protocols/target/tarpaulin-reports/const-sv2-coverage/cobertura.xml
flags: const_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload framing_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/framing-sv2-coverage
file: ./protocols/target/tarpaulin-reports/framing-sv2-coverage/cobertura.xml
flags: framing_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload job_declaration_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/job-declaration-coverage
file: ./protocols/target/tarpaulin-reports/job-declaration-coverage/cobertura.xml
flags: job_declaration_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}


- name: Upload noise_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/noise-sv2-coverage
file: ./protocols/target/tarpaulin-reports/noise-sv2-coverage/cobertura.xml
flags: noise_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload roles_logic_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/roles-logic-sv2-coverage
file: ./protocols/target/tarpaulin-reports/roles-logic-sv2-coverage/cobertura.xml
flags: roles_logic_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload v1-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/v1-coverage
file: ./protocols/target/tarpaulin-reports/v1-coverage/cobertura.xml
flags: v1-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload sv2_ffi-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/sv2-ffi-coverage
file: ./protocols/target/tarpaulin-reports/sv2-ffi-coverage/cobertura.xml
flags: sv2_ffi-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload template_distribution_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/template-distribution-coverage
file: ./protocols/target/tarpaulin-reports/template-distribution-coverage/cobertura.xml
flags: template_distribution_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload mining-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./protocols/target/tarpaulin-reports/mining-coverage
file: ./protocols/target/tarpaulin-reports/mining-coverage/cobertura.xml
flags: mining-coverage
token: ${{ secrets.CODECOV_TOKEN }}
89 changes: 89 additions & 0 deletions .github/workflows/coverage-roles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Roles test Coverage

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
roles-coverage:

name: tarpaulin Test
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:0.27.1-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Generate code coverage
run: |
./scripts/coverage-roles.sh
- name: Upload roles coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports
file: ./roles/target/tarpaulin-reports/cobertura.xml
flags: roles
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload jd_client-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/jd-client-coverage
file: ./roles/target/tarpaulin-reports/jd-client-coverage/cobertura.xml
flags: jd_client-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload jd_server-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/jd-server-coverage
file: ./roles/target/tarpaulin-reports/jd-server-coverage/cobertura.xml
flags: jd_server-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload mining_device-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/mining-device-coverage
file: ./rroles/target/tarpaulin-reports/mining-device-coverage/cobertura.xml
flags: mining_device-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload mining_proxy_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/mining-proxy-coverage
file: ./roles/target/tarpaulin-reports/mining-proxy-coverage/cobertura.xml
flags: mining_proxy_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload pool_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/pool-coverage
file: ./roles/target/tarpaulin-reports/pool-coverage/cobertura.xml
flags: pool_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload sv1-mining-device-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/sv1-mining-device-coverage
file: ./roles/target/tarpaulin-reports/sv1-mining-device-coverage/cobertura.xml
flags: sv1-mining-device-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload translator_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./roles/target/tarpaulin-reports/translator-coverage
file: ./roles/target/tarpaulin-reports/translator-coverage/cobertura.xml
flags: translator_sv2-coverage
token: ${{ secrets.CODECOV_TOKEN }}
66 changes: 66 additions & 0 deletions .github/workflows/coverage-utils.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Util Test Coverage

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
utils-coverage:

name: tarpaulin Test
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:0.27.1-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Generate code coverage
run: |
./scripts/coverage-utils.sh
- name: Upload utils coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./utils/target/tarpaulin-reports
file: ./utils/target/tarpaulin-reports/cobertura.xml
flags: utils
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload bip32_derivation-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./utils/target/tarpaulin-reports/bip32-key-derivation-coverage
file: ./utils/target/tarpaulin-reports/bip32-key-derivation-coverage/cobertura.xml
flags: bip32_derivation-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload buffer_sv2-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./utils/target/tarpaulin-reports/buffer-coverage
file: ./utils/target/tarpaulin-reports/buffer-coverage/cobertura.xml
flags: buffer_sv2-coverage

token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload error_handling-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./utils/target/tarpaulin-reports/error-handling-coverage
file: ./utils/target/tarpaulin-reports/error-handling-coverage/cobertura.xml
flags: error_handling-coverage
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload key-utils-coverage to codecov.io
uses: codecov/codecov-action@v4
with:
directory: ./utils/target/tarpaulin-reports/key-utils-coverage
file: ./utils/target/tarpaulin-reports/key-utils-coverage/cobertura.xml
flags: key-utils-coverage
token: ${{ secrets.CODECOV_TOKEN }}
50 changes: 0 additions & 50 deletions .github/workflows/coverage.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
cargo build --manifest-path=roles/Cargo.toml
cargo build --manifest-path=utils/Cargo.toml
- name: Roles Integration Tests
run: |
cargo test --manifest-path=roles/Cargo.toml --verbose --test '*' -- --nocapture
- name: Run sv1-client-and-server example
run: |
cargo run --manifest-path=examples/sv1-client-and-server/Cargo.toml --bin client_and_server -- 60
Expand Down
Empty file removed CHANGELOG.md
Empty file.
Loading

0 comments on commit 0eb7c0c

Please sign in to comment.