Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/tox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Tox Tests

on:
push:
branches:
- master # Run only on the master branch

jobs:
test:
name: Test with Tox
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox

- name: Run Tox
run: tox -e py${{ matrix.python-version }}
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,15 @@ inv package.build && inv package.install && inv test.cli

Note that this will force install the built wheel from the project `dist/` directory over any existing local install.

### Tox tests

To run tox tests against all supported Python versions:

```bash
pip install tox
tox
```

## Documentation

The `README.md` file contains a table showing example badges for the different built-in colors. If you modify the
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Python project for generating badges for your projects

[![buymeacoffee](https://camo.githubusercontent.com/c3f856bacd5b09669157ed4774f80fb9d8622dd45ce8fdf2990d3552db99bd27/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/jongracecox)

Supports: Python 3.7-3.9 (2.7-3.6 support has been dropped)
Supports: Python 3.7-3.13 (2.7-3.6 support has been dropped)

## Overview

Expand Down
1 change: 1 addition & 0 deletions build-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ pytest
pytest-cov
requests
setuptools
tox
types-requests
wheel
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[tox]
envlist = py37, py38, py39, py310, py311, py312, py313

[testenv]
deps =
pytest
-rbuild-requirements.txt
commands =
pytest --doctest-modules anybadge tests