Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always run Cython at build time #11

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 3 additions & 21 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,19 @@ on: [push, pull_request]

jobs:
test:
name: Test ${{ matrix.os }} / ${{ matrix.python-version }} / Cython ${{ matrix.cythonize }} / ${{ matrix.env-type.env-type-name }}
name: Test ${{ matrix.os }} / ${{ matrix.python-version }} / ${{ matrix.env-type.env-type-name }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
python-version: ["3.8", "3.9", "3.10", "3.11"]
- windows-latest
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
# yamllint disable rule:braces
env-type:
- { env-type-name: venv, shell: bash }
- { env-type-name: conda, shell: 'bash -l {0}' }
# yamllint enable rule:braces
cythonize: [true, false]
# Skip some overkill jobs.
exclude:
- os: ubuntu-latest
env-type: { env-type-name: venv, shell: bash }
cythonize: false
- os: ubuntu-latest
env-type: { env-type-name: conda, shell: 'bash -l {0}' }
cythonize: true
- os: macos-latest
env-type: { env-type-name: conda, shell: 'bash -l {0}' }
cythonize: false
- os: macos-latest
env-type: { env-type-name: venv, shell: bash }
cythonize: true
runs-on: ${{ matrix.os }}
defaults:
run:
Expand All @@ -57,10 +43,6 @@ jobs:
if: ${{ matrix.env-type.env-type-name == 'conda' }}
- name: Update pip and setuptools
run: python -m pip install -U pip setuptools
- name: Install Cython
run: |
python -m pip install 'Cython<3'
if: ${{ matrix.cythonize }}
- name: Print pip config
run: python -m pip config list
- name: Install test dependencies
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ profile.out
*.png
*.vtk
prof
dist/
docs/_build
cython/cbecke.c
pyquante2.egg-info/
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
graft cython
global-exclude *.html
global-exclude *.py[cod]
Loading
Loading