2020 fail-fast : false
2121 matrix :
2222 os : ["ubuntu-latest"]
23- python-version : [3.8, 3.9, "3.10", "3.11"]
23+ python-version : [3.8, 3.9, "3.10", "3.11", "3.12" ]
2424
2525 steps :
2626 - uses : actions/checkout@v2
@@ -35,11 +35,14 @@ jobs:
3535 libdlf
3636 cython
3737 setuptools_scm
38+ meson-python>=0.14.0
39+ meson
40+ ninja
41+ build
3842 discretize
3943 matplotlib
4044 jupyter
4145 utm
42- numba
4346 pytest
4447 pytest-cov
4548 sphinx
@@ -49,16 +52,20 @@ jobs:
4952 graphviz
5053 pillow
5154 cache-environment : true
55+ - name : Install numba
56+ if : matrix.python-version != '3.12'
57+ # Numba doesn't work on python 3.12 just yet, so conditionally install it into the environment:
58+ run : |
59+ micromamba install numba
5260 - name : Install Our Package
5361 run : |
54- export BUILD_GEOANA_EXT=1
55- pip install -e .
62+ pip install --no-build-isolation --editable . --config-settings=setup-args="-Dwith_extensions=true"
5663 conda list
5764 - name : Run Tests
5865 run : |
5966 pytest --cov-config=.coveragerc --cov=geoana --cov-report=xml -s -v -W ignore::DeprecationWarning
6067 - name : " Upload coverage to Codecov"
61- if : ${{ matrix.python-version }} == '3.10 '
68+ if : matrix.python-version == '3.11 '
6269 uses : codecov/codecov-action@v3
6370 with :
6471 token : ${{ secrets.CODECOV_TOKEN }}
8491 libdlf
8592 cython
8693 setuptools_scm
94+ meson-python>=0.14.0
95+ meson
96+ ninja
97+ build
8798 discretize
8899 matplotlib
89100 jupyter
@@ -100,8 +111,7 @@ jobs:
100111 cache-environment : true
101112 - name : Prepare source distribution
102113 run : |
103- export BUILD_GEOANA_EXT=1
104- python setup.py sdist
114+ python -m build --no-isolation --skip-dependency-check --sdist . --config-settings=setup-args="-Dwith_extensions=true"
105115 - name : Publish package
106116 uses : pypa/gh-action-pypi-publish@release/v1
107117 with :
@@ -110,8 +120,7 @@ jobs:
110120 skip_existing : true
111121 - name : Install package
112122 run : |
113- export BUILD_GEOANA_EXT=1
114- pip install -e .
123+ pip install --no-build-isolation --editable . --config-settings=setup-args="-Dwith_extensions=true"
115124 - name : Build documentation
116125 run : |
117126 cd docs
0 commit comments