-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
401 changed files
with
40,616 additions
and
26,113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"editor.guides": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [x86_64, aarch64, armv7] | ||
python: ['3.9', '3.10'] | ||
target: [x86_64, aarch64] | ||
steps: | ||
- name: "Check if user has write access" | ||
uses: "lannonbr/[email protected]" | ||
|
@@ -43,16 +42,18 @@ jobs: | |
ref: ${{ inputs.base }} | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
python-version: | | ||
3.8 | ||
3.9 | ||
3.10 | ||
3.11 | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
working-directory: ./python | ||
command: build | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --find-interpreter | ||
args: --release --out dist -i python3.7 -i python3.8 -i python3.9 -i python3.10 -i python3.11 | ||
manylinux: 2014 | ||
before-script-linux: | | ||
if [[ -f /etc/os-release ]]; then | ||
|
@@ -101,7 +102,6 @@ jobs: | |
strategy: | ||
matrix: | ||
target: [x64] | ||
python: ['3.9', '3.10'] | ||
steps: | ||
- name: "Check if user has write access" | ||
uses: "lannonbr/[email protected]" | ||
|
@@ -114,15 +114,19 @@ jobs: | |
ref: ${{ inputs.base }} | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
python-version: | | ||
3.8 | ||
3.9 | ||
3.10 | ||
3.11 | ||
architecture: ${{ matrix.target }} | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
working-directory: ./python | ||
command: build | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --find-interpreter | ||
args: --release --out dist -i python3.7 -i python3.8 -i python3.9 -i python3.10 -i python3.11 | ||
- name: Upload wheels to gh artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
|
@@ -133,7 +137,6 @@ jobs: | |
strategy: | ||
matrix: | ||
target: [x86_64, aarch64] | ||
python: ['3.9', '3.10'] | ||
steps: | ||
- name: "Check if user has write access" | ||
uses: "lannonbr/[email protected]" | ||
|
@@ -157,7 +160,11 @@ jobs: | |
ref: ${{ inputs.base }} | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
python-version: | | ||
3.8 | ||
3.9 | ||
3.10 | ||
3.11 | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ jobs: | |
with: | ||
command: clean | ||
- name: Run tests (rust) | ||
run: cargo test -p raphtory | ||
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' | ||
|
@@ -66,7 +66,7 @@ jobs: | |
name: Run rust tests (rust-grcov) and collect coverage | ||
uses: actions-rs/[email protected] | ||
- name: Run python tests and collect coverage | ||
run: pytest --cov=./ --cov-report=xml | ||
run: cd python/tests && pytest --cov=./ --cov-report=xml | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# this workflow checks out the code, and installs nightly build of cargo and runs a cargo +nightly fmt --all -- --check and fails workflow if any code is not formatted | ||
# | ||
|
||
name: Rust format check | ||
on: | ||
workflow_call: | ||
inputs: | ||
fail_if_not_formatted: | ||
type: boolean | ||
default: true | ||
required: false | ||
description: "Fail the workflow if any code is not formatted" | ||
|
||
jobs: | ||
rust-format-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
components: rustfmt | ||
- name: Run rust format check | ||
run: | | ||
if [ ${{ inputs.fail_if_not_formatted }} == true ]; then | ||
cargo +nightly fmt --all -- --check | ||
else | ||
cargo +nightly fmt --all -- --check || true | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.