feat: add optional cython extension (#44)

This commit is contained in:
J. Nick Koston
2022-10-01 13:10:34 -10:00
committed by GitHub
parent 1ca2f1282a
commit b737574cf0
11 changed files with 397 additions and 206 deletions

View File

@@ -42,6 +42,9 @@ jobs:
- "3.10"
os:
- ubuntu-latest
extension:
- "skip_cython"
- "use_cython"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
@@ -55,7 +58,12 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install Dependencies
run: poetry install
run: |
if [ "${{ matrix.extension }}" = "skip_cython" ]; then
SKIP_CYTHON=1 poetry install
else
poetry install
fi
- name: Test with Pytest
run: export $(dbus-launch); poetry run pytest --cov-report=xml
- name: Upload coverage to Codecov