Skip to content

Commit

Permalink
Merge d931304 into 79fe7f5
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Jul 25, 2022
2 parents 79fe7f5 + d931304 commit 64ca916
Show file tree
Hide file tree
Showing 438 changed files with 26,731 additions and 4,609 deletions.
52 changes: 44 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ jobs:
- name: Clippy
run: cargo clippy -- -D warnings
- name: Black Codestyle Format
run: black --check --diff retworkx tests
run: black --check --diff retworkx rustworkx retworkx tests
- name: Python Lint
run: flake8 --per-file-ignores='retworkx/__init__.py:F405,F403' setup.py retworkx tests
- name: retworkx-core Rust Tests
run: pushd retworkx-core && cargo test && popd
- name: retworkx-core Docs
run: pushd retworkx-core && cargo doc && popd
run: flake8 --per-file-ignores='retworkx/__init__.py:F405,F403' setup.py retworkx tests rustworkx
- name: rustworkx-core Rust Tests
run: pushd rustworkx-core && cargo test && popd
- name: rustworkx-core Docs
run: pushd rustworkx-core && cargo doc && popd
- uses: actions/upload-artifact@v2
with:
name: retworkx_core_docs
path: target/doc/retworkx_core
name: rustworkx_core_docs
path: target/doc/rustworkx_core
tests:
needs: [build_lint]
name: python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }} ${{ matrix.msrv }}
Expand Down Expand Up @@ -88,6 +88,42 @@ jobs:
if: runner.os == 'Linux'
- name: 'Run tests'
run: tox -epy
tests_retworkx_compat:
needs: [build_lint]
name: python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }} ${{ matrix.msrv }}
runs-on: ${{ matrix.platform.os }}
strategy:
matrix:
rust: [stable]
python-version: ["3.10"]
platform: [
{ os: "macOS-latest", python-architecture: "x64", rust-target: "x86_64-apple-darwin" },
{ os: "ubuntu-latest", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" },
{ os: "windows-latest", python-architecture: "x64", rust-target: "x86_64-pc-windows-msvc" },
]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.platform.python-architecture }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.platform.rust-target }}
profile: minimal
default: true
- name: 'Install dependencies'
run: python -m pip install --upgrade tox
- name: 'Install binary dependencies'
run: sudo apt-get install -y graphviz
if: runner.os == 'Linux'
- name: 'Run tests'
run: tox -epy -- -t ./retworkx_backwards_compat
env:
RUSTWORKX_PKG_NAME: retworkx
coverage:
needs: [tests]
name: Coverage
Expand Down

0 comments on commit 64ca916

Please sign in to comment.