Skip to content
Merged
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
26 changes: 12 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ on:
types: [published]

jobs:
build:

publish:
permissions:
contents: write
actions: read
contents: read
id-token: write

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.13"]
python-version: ["3.13"]

steps:
- uses: actions/checkout@v3
Expand All @@ -37,18 +38,15 @@ jobs:
pylint --rcfile=pylintrc --fail-under=9 src/vstarstack
- name: Build & Install
run: |
python -m build . --wheel
python -m build . --wheel -n
find ./dist/*.whl | xargs python -m pip install
- name: Test that tools launches
run: |
vstarstack
- name: Test library with pytest
- name: Build sdist
run: |
pytest --cov-fail-under=47 --cov=vstarstack.library tests/
rm -f ./dist/*
python -m build . --sdist

- name: Upload assets to the same Release
uses: softprops/action-gh-release@v2
with:
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.12.4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
__pycache__/
*build*
*egg*
dist
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "py_build_cmake.build"

[project]
name = "vstarstack"
version = "0.3.7"
version = "0.3.7.0"
requires-python = ">=3.10"
authors = [{name="Vladislav Tsendrovskii", email="vtcendrovskii@gmail.com"}]
description = 'Stacking astrophotos'
Expand Down