Skip to content

Commit

Permalink
fix: python typings don't match runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Jul 10, 2023
1 parent 0abc213 commit 05e3708
Show file tree
Hide file tree
Showing 6 changed files with 211 additions and 137 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/nucypher-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,38 @@ jobs:
with:
cmd: --cwd nucypher-core-wasm/examples/node test

python-test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
python:
- "3.10"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- name: Install nucypher-core Python package
run: pip install -e .
working-directory: nucypher-core-python

- name: Install pip dependencies
run: pip install mypy

- name: Run mypy.stubtest
run: python -m mypy.stubtest nucypher_core
working-directory: nucypher-core-python

trigger-wheels:
runs-on: ubuntu-latest
needs: test
Expand Down
Loading

0 comments on commit 05e3708

Please sign in to comment.