Skip to content

Commit

Permalink
fix: codecov support, docs simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
aliev committed Jan 25, 2025
1 parent 6a8ff3e commit 08939bf
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 137 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
- name: Install dependencies
run: |
make dev-install
pip install codecov
- name: Run lint
run: |
make lint
- name: Run tests
run: |
make test
- name: Upload test coverage
run: codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ lint: ## check style with flake8
pre-commit run --all-files

test: ## run tests quickly with the default Python
pytest tests
coverage run -m pytest tests
coverage xml -o junit.xml

release: dist ## package and upload a release
twine upload dist/*
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Coverage](https://badgen.net/codecov/c/github/aliev/aioauth)](https://app.codecov.io/gh/aliev/aioauth)
[![License](https://img.shields.io/github/license/aliev/aioauth)](https://github.com/aliev/aioauth/blob/master/LICENSE)
[![PyPi](https://badgen.net/pypi/v/aioauth)](https://pypi.org/project/aioauth/)
[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/)
[![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-390/)

`aioauth` implements [OAuth 2.0 protocol](https://tools.ietf.org/html/rfc6749) and can be used in asynchronous frameworks like [FastAPI / Starlette](https://github.com/tiangolo/fastapi), [aiohttp](https://github.com/aio-libs/aiohttp). It can work with any databases like `MongoDB`, `PostgreSQL`, `MySQL` and ORMs like [gino](https://python-gino.org/), [sqlalchemy](https://www.sqlalchemy.org/) or [databases](https://pypi.org/project/databases/) over simple [BaseStorage](aioauth/storage.py) interface.

Expand Down
12 changes: 7 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
# -- Path setup --------------------------------------------------------------

from pathlib import Path
import tomllib
from aioauth import __version__

# Project root folder.
root = Path(__file__).parent.parent.parent

# Loads __version__ file.
about = {}
with open(root / "aioauth" / "__version__.py", "r") as f:
exec(f.read(), about)
with open(root / "pyproject.toml", "rb") as f:
about = tomllib.load(f)

# -- Project information -----------------------------------------------------

project = about["__title__"]
author = about["__author__"]
release = about["__version__"]
project = about["project"]["description"]
author = about["project"]["authors"][0]["name"]
release = __version__

# -- General configuration ---------------------------------------------------

Expand Down
14 changes: 0 additions & 14 deletions docs/source/contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@
:glob:
:maxdepth: 2

sections/using/*

.. toctree::
:caption: Examples
:glob:
:maxdepth: 2

sections/examples/*

.. toctree::
:caption: Documentation
:glob:
:maxdepth: 3

sections/documentation/*

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ aioauth supports the following RFCs:
Pages
-----

* `Github Project <https://github.com/aliev/aioauth/pull/21>`_
* `Github Project <https://github.com/aliev/aioauth>`_
* `Issues <https://github.com/aliev/aioauth/issues>`_
* `Discussion <https://github.com/aliev/aioauth/discussions>`_

Expand Down
2 changes: 0 additions & 2 deletions docs/source/sections/examples/aiohttp.rst

This file was deleted.

58 changes: 0 additions & 58 deletions docs/source/sections/examples/fastapi.rst

This file was deleted.

48 changes: 0 additions & 48 deletions docs/source/sections/using/configuration.rst

This file was deleted.

2 changes: 0 additions & 2 deletions docs/source/sections/using/server_database.rst

This file was deleted.

0 comments on commit 08939bf

Please sign in to comment.