-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fa152a
commit 9d1ba06
Showing
3 changed files
with
58 additions
and
462 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: pyMHF | ||
|
||
on: | ||
# Run on all branches except for the gh-pages branch | ||
push: | ||
paths-ignore: | ||
- '*.md' | ||
branches-ignore: | ||
- 'gh-pages' | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
branches-ignore: | ||
- 'gh-pages' | ||
create: | ||
|
||
jobs: | ||
build_test: | ||
name: Build artefacts | ||
runs-on: Windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
py_ver: [{version: '3.9'}] # , {version: '3.10'}, {version: '3.11'}] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.py_ver.version}} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "${{ matrix.py_ver.version}}" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip uv | ||
uv sync --frozen --dev | ||
- name: Build Python ${{ matrix.py_ver.version}} wheel | ||
run: uv build | ||
- name: Lint and format code | ||
run: | | ||
uv run ruff check ./pymhf | ||
uv run ruff format --check ./pymhf | ||
- name: Upload Wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pyMHF | ||
path: dist/* | ||
release: | ||
name: Release pyMHF wheels and source build | ||
# Only run this job if the commit was tagged. | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
runs-on: windows-latest | ||
needs: [build_test] | ||
steps: | ||
- name: Download files for release | ||
uses: actions/download-artifact@v4 | ||
- name: See what files we have | ||
run: ls | ||
shell: bash | ||
# TODO: Add release action |
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 |
---|---|---|
|
@@ -39,7 +39,6 @@ pymhf = "pymhf" | |
dev-dependencies = [ | ||
"pytest", | ||
"ruff", | ||
"twine", | ||
] | ||
|
||
[tool.ruff] | ||
|
Oops, something went wrong.