feat: add optional cython extension (#44)
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user