diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index d152d1b..71eb887 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -37,6 +37,34 @@ jobs: - name: Lint run: hatch run lint:run + build: + name: build + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + cache: 'pip' + + - name: Install hatch + run: pipx install hatch + + - name: Install twine + run: pipx install twine + + - name: Build distribution + run: hatch build + + - name: Check build + run: twine check --strict dist/* + test: name: test on ${{ matrix.py }} runs-on: ubuntu-22.04 diff --git a/README.rst b/README.rst index c0f7954..a1d1370 100644 --- a/README.rst +++ b/README.rst @@ -303,6 +303,7 @@ MIT - Tomas Aparicio .. _annotated API reference: http://pook.readthedocs.io/en/latest/api.html .. _examples: http://pook.readthedocs.io/en/latest/examples.html .. _aiohttp: https://github.com/KeepSafe/aiohttp +.. _httpx: https://www.python-httpx.org/ .. _requests: http://docs.python-requests.org/en/master/ .. _urllib3: https://github.com/shazow/urllib3 .. _urllib: https://docs.python.org/3/library/urllib.html