-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into replace_pval_extensio…
…n_with_scipyl
- Loading branch information
Showing
8 changed files
with
248 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ on: | |
- '.github/workflows/documentation.yaml' | ||
- '.github/workflows/buildjet_arm64.yml' | ||
- '.github/workflows/release-drafter.yml' | ||
- '.github/workflows/codeql.yml' | ||
- '.github/workflows/codeql.yml' | ||
- '.gitattributes' | ||
push: | ||
paths-ignore: | ||
|
@@ -34,7 +34,7 @@ on: | |
- '.github/workflows/documentation.yaml' | ||
- '.github/workflows/buildjet_arm64.yml' | ||
- '.github/workflows/release-drafter.yml' | ||
- '.github/workflows/codeql.yml' | ||
- '.github/workflows/codeql.yml' | ||
- '.gitattributes' | ||
release: | ||
types: | ||
|
@@ -178,12 +178,45 @@ jobs: | |
if: runner.os == 'Linux' | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: all | ||
platforms: all | ||
- name: Install a recent stable Python to handle Python deps | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12 | ||
- name: Query version with setuptools_scm | ||
id: version | ||
shell: bash | ||
run: | | ||
python -m pip install setuptools_scm | ||
VERSION=$(python -c "from src.PyPop import __version_scheme__; import setuptools_scm; print(setuptools_scm.get_version(version_scheme=__version_scheme__))") | ||
echo "VERSION=${VERSION}" | ||
echo "VERSION=${VERSION}" >> $GITHUB_ENV | ||
- name: Install toml and remove cffconvert from pyproject.toml | ||
run: | | ||
python -m pip install toml | ||
python -c " | ||
import toml | ||
with open('pyproject.toml', 'r') as f: | ||
config = toml.load(f) | ||
if 'build-system' in config and 'requires' in config['build-system']: | ||
config['build-system']['requires'] = [ | ||
dep for dep in config['build-system']['requires'] if 'cffconvert' not in dep.lower() | ||
] | ||
with open('pyproject.toml', 'w') as f: | ||
toml.dump(config, f) | ||
" | ||
- name: Generate citation formats | ||
run: | | ||
python --version | ||
python -m pip install git+https://github.com/alexlancaster/cffconvert.git@combine_features#egg=cffconvert | ||
python src/PyPop/citation.py | ||
- name: Build and test wheels | ||
uses: pypa/[email protected] | ||
env: | ||
# FIXME: only run the slow tests when doing regular pushes, or manual - not for PRs | ||
CIBW_TEST_COMMAND: "pytest -v {package}/tests ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && '--runslow' || '' }}" | ||
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ env.VERSION }} | ||
CIBW_ENVIRONMENT_PASS_LINUX: SETUPTOOLS_SCM_PRETEND_VERSION | ||
with: | ||
only: ${{ matrix.only }} | ||
package-dir: . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.