Skip to content

Switch to wsrv's default param when appropriate #86

Switch to wsrv's default param when appropriate

Switch to wsrv's default param when appropriate #86

Workflow file for this run

name: CI
on:
pull_request: ~
push: ~
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: pipx install poetry
- uses: actions/setup-python@v7
with:
cache: poetry
- run: poetry install --only lint
- run: poetry run ruff check .
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v7
- run: pipx install poetry
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python }}
cache: poetry
- run: poetry env use python${{ matrix.python }}
- run: poetry install --only main,test
- run: poetry run pytest
- if: matrix.python == '3.14'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
build:
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: pipx install poetry
- uses: actions/setup-python@v7
with:
cache: poetry
- run: poetry build
- name: Smoke-test the built wheel in a clean venv
run: |
python -m venv /tmp/wheel-venv
/tmp/wheel-venv/bin/pip install dist/*.whl
/tmp/wheel-venv/bin/python -c "
from ui_avatars import avatar_url
url = avatar_url(name='Ada Lovelace', email='ada@example.com')
assert url.startswith('https://www.gravatar.com/avatar/'), url
print(url)
"
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/