Bump minimum version of requests
, add CI testing workflow with Tox
#4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tox | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- src | |
- tests | |
- pyproject.toml | |
- tox.ini | |
pull_request: | |
branches: | |
- master | |
paths: | |
- src | |
- tests | |
- pyproject.toml | |
- tox.ini | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
run-all-tests: | |
name: Py${{ matrix.py }} / ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-20.04 | |
- windows-latest | |
py: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
steps: | |
- name: Set up Python ${{ matrix.py }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.py }} | |
- name: Checkout NTIA/Preselector | |
uses: actions/checkout@v4 | |
- name: Install tox-gh | |
run: python -m pip install tox-gh | |
- name: Set up test suite | |
run: tox r -vv --notest | |
- name: Run test suite | |
run: tox r --skip-pkg-install | |
env: | |
PYTEST_ADDOPTS: "-vv --durations=0" |