diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5990d9c..732675a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,11 +1,12 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - version: 2 updates: - - package-ecosystem: "" # See documentation for possible values - directory: "/" # Location of package manifests + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "pip" + directory: "/" schedule: - interval: "weekly" + interval: "daily" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80bb47f..804a178 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,16 +4,19 @@ on: push: branches: - main - tags: - - "v*" pull_request: + workflow_call: + +permissions: + contents: read + packages: read jobs: test: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b8c0412 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,43 @@ +name: Publish + +on: + push: + tags: + - "v*" + +jobs: + ci: + permissions: + contents: read + uses: ./.github/workflows/ci.yml + + pypi: + needs: ci + runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + + - run: pip install build + + - run: python -m build + + - uses: pypa/gh-action-pypi-publish@release/v1 + + release: + runs-on: ubuntu-latest + needs: pypi + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - uses: softprops/action-gh-release@v2 + with: + generate_release_notes: true diff --git a/README.md b/README.md index 9219c4b..df8bf95 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Loopia Python Library [![Documentation Status](https://app.readthedocs.org/projects/loopiase-python/badge/?version=latest)](https://loopiase-python.readthedocs.io/en/latest/) +[![Coverage Status](https://coveralls.io/repos/github/DigitalTolk/loopiase-python/badge.svg?branch=feature/add-github-actions)](https://coveralls.io/github/DigitalTolk/loopiase-python?branch=feature/add-github-actions) Python client library for the [Loopia](https://www.loopia.se) domain registrar API. diff --git a/pyproject.toml b/pyproject.toml index 47986ad..5c07439 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "loopiase" -version = "0.1.0" +version = "0.0.1" description = "Python client library for the Loopia API" readme = "README.md" license = "GPL-3.0-only"