Skip to content

Commit

Permalink
Merge pull request #11 from openweathermap/feature/docs_with_new_feat…
Browse files Browse the repository at this point in the history
…ures

docs update and CI refactoring
  • Loading branch information
SerGeRybakov authored Aug 18, 2023
2 parents a199522 + 71def0f commit 2460e43
Show file tree
Hide file tree
Showing 24 changed files with 3,348 additions and 755 deletions.
29 changes: 0 additions & 29 deletions .coveragerc

This file was deleted.

284 changes: 0 additions & 284 deletions .github/workflows/github-actions.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/on_push.yml
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
49 changes: 49 additions & 0 deletions .github/workflows/on_release.yml
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
Loading

0 comments on commit 2460e43

Please sign in to comment.