From 4efd2ef203b4a9ad460766c9749bc7098a7879a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Grodotzki?= Date: Sat, 18 Apr 2026 14:12:06 +0200 Subject: [PATCH] Add github actions --- .github/workflows/ci.yml | 45 ++++++++++++++++++++++++++++++++++++++++ Makefile | 2 +- README.md | 2 ++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..80bb47f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI + +on: + push: + branches: + - main + tags: + - "v*" + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13"] + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - run: make install + + - run: make test + + - name: Upload coverage + if: matrix.python-version == '3.13' + uses: coverallsapp/github-action@v2 + with: + file: coverage.lcov + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + + - run: make install + + - run: make lint diff --git a/Makefile b/Makefile index 84a8176..cbfd301 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ install: pip install -e ".[dev]" test: - python -m pytest tests/ -v --cov=loopiase --cov-report=term-missing + python -m pytest tests/ -v --cov=loopiase --cov-report=term-missing --cov-report=lcov lint: python -m pyright src/ tests/ diff --git a/README.md b/README.md index 46d938c..9219c4b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Loopia Python Library +[![Documentation Status](https://app.readthedocs.org/projects/loopiase-python/badge/?version=latest)](https://loopiase-python.readthedocs.io/en/latest/) + Python client library for the [Loopia](https://www.loopia.se) domain registrar API. ## Installation