-
Notifications
You must be signed in to change notification settings - Fork 60
ci: overhaul ci and cd workflows #326
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
a738e16
ci: overhaul ci and cd workflows
afuetterer 8f75acd
ci: follow up adjustments
lkstrp fd7db28
fix: fix version retrieve
lkstrp 646cd8f
fix: rename `.yaml` to `.yml`
lkstrp 2d7782e
ci: remove unneeded "fetch-depth: 0"
afuetterer 5ec2df7
ci: add concurrency settings
afuetterer f98e67f
fix: name
lkstrp dd258c2
ci: try to fix failing test job
afuetterer 5af5b5a
chore: add trove classifiers with version
lkstrp 83d4442
fix: add package download
lkstrp dabf924
ci: try to fix failing test job
afuetterer ac7a2b7
ci: test
afuetterer 15a451e
ci: test
afuetterer 12c39f3
ci: test
afuetterer 9c05849
ci: test
afuetterer e272649
ci: test
afuetterer 314d823
ci: test
afuetterer 1aef138
ci: test
afuetterer 40aa6c6
ci: test
afuetterer 2acc148
ci: test
afuetterer b11913a
ci: finally
afuetterer 8e30ad0
ci: add comment
lkstrp c6564a8
ci: update readme
lkstrp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,45 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v*.*.* | ||
|
||
jobs: | ||
dist: | ||
# Build the Python SDist and wheel, performs metadata and readme linting | ||
name: Build distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: hynek/build-and-inspect-python-package@v2 | ||
|
||
release: | ||
# Publish a GitHub release from the given git tag | ||
name: Create GitHub Release | ||
needs: [dist] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: softprops/action-gh-release@v2 | ||
with: | ||
generate_release_notes: true | ||
|
||
publish: | ||
# Publish the built SDist and wheel from "dist" job on PyPI | ||
afuetterer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
name: Publish to PyPI | ||
needs: [dist] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: Release | ||
url: https://pypi.org/project/linopy/ | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: Packages | ||
path: dist | ||
- uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.