-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from openweathermap/feature/docs_with_new_feat…
…ures docs update and CI refactoring
- Loading branch information
Showing
24 changed files
with
3,348 additions
and
755 deletions.
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 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,14 @@ | ||
name: push | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'refs/tags/v' | ||
|
||
jobs: | ||
checks: | ||
uses: openweathermap/deker-actions/.github/workflows/checks.yml@master | ||
with: | ||
package-name: ${{ vars.PACKAGE_NAME }} | ||
python-version: '3.9' | ||
min-coverage: 96 |
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,49 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[1-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
tox_tests: | ||
uses: openweathermap/deker-actions/.github/workflows/tox.yml@master | ||
with: | ||
package-name: ${{ vars.PACKAGE_NAME }} | ||
min-coverage: 96 | ||
|
||
build_docs: | ||
needs: tox_tests | ||
uses: openweathermap/deker-actions/.github/workflows/docs_build.yml@master | ||
with: | ||
python-version: '3.9' | ||
|
||
build_sdist: | ||
needs: [tox_tests, build_docs] | ||
name: Build source distribution | ||
uses: openweathermap/deker-actions/.github/workflows/build.yml@master | ||
|
||
publish_docs: | ||
needs: [build_docs, build_sdist] | ||
uses: openweathermap/deker-actions/.github/workflows/docs_publish.yml@master | ||
|
||
upload_pypi: | ||
name: Publish source distribution | ||
needs: [build_docs, build_sdist] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/${{ vars.PACKAGE_NAME }} | ||
|
||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
# unpacks default artifact into dist/ | ||
# if `name: artifact` is omitted, the action will create extra parent dir | ||
name: artifact | ||
path: dist | ||
|
||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
Oops, something went wrong.