Skip to content

Add a TimersClient app scope helper for data_access + example doc #2793

Add a TimersClient app scope helper for data_access + example doc

Add a TimersClient app scope helper for data_access + example doc #2793

Workflow file for this run

name: build
on:
push:
pull_request:
# build weekly at 4:00 AM UTC
schedule:
- cron: '0 4 * * 1'
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.x'
- run: python -m pip install -U tox
- run: tox -e pylint
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.11'
- run: python -m pip install -U tox
- run: tox -e mypy,mypy-test
test:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
# we do not want a large number of windows and macos builds, so
# enumerate them explicitly
include:
- os: windows-latest
python-version: "3.11"
- os: macos-latest
python-version: "3.11"
name: "test py${{ matrix.python-version }} on ${{ matrix.os }} "
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: install tox
run: python -m pip install -U tox
- name: run tests
run: python -m tox -e py,coverage_report
test-lazy-imports:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.x'
- run: python -m pip install -U tox
- run: tox -e test-lazy-imports
test-mindeps:
runs-on: ubuntu-latest
name: "mindeps"
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.8"
- name: install tox
run: python -m pip install -U tox
- name: test
run: tox -e py-mindeps
test-package-metadata:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.11"
- name: install tox
run: python -m pip install -U tox
- name: check package metadata
run: python -m tox -e twine-check,poetry-check
- name: check min version is tested in CI
run: python -m tox r -e check-min-python-is-tested