Skip to content

Commit 4440c1e

Browse files
committed
add GitHub Actions workflow based on tox-gh-actions, create a map of tox environments
1 parent 6dff980 commit 4440c1e

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: python-tabulate
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ['3.9', '3.10', '3.11', '3.12']
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
python -m pip install tox tox-gh-actions
24+
- name: Test with tox
25+
run: tox

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pip install tabulate
5353
Build status
5454
------------
5555

56-
[![Build status](https://ci.appveyor.com/api/projects/status/8745yksvvol7h3d7/branch/master?svg=true)](https://ci.appveyor.com/project/astanin/python-tabulate/branch/master)
56+
[![python-tabulate](https://github.com/astanin/python-tabulate/actions/workflows/github-actions-tox.yml/badge.svg)](https://github.com/astanin/python-tabulate/actions/workflows/github-actions-tox.yml) [![Build status](https://ci.appveyor.com/api/projects/status/8745yksvvol7h3d7/branch/master?svg=true)](https://ci.appveyor.com/project/astanin/python-tabulate/branch/master)
5757

5858
Library usage
5959
-------------

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
envlist = lint, py{38, 39, 310, 311, 312}
1212
isolated_build = True
1313

14+
[gh-actions]
15+
python =
16+
3.9: py39
17+
3.10: py310
18+
3.11: py311
19+
3.12: py312
20+
1421
[testenv]
1522
commands = pytest -v --doctest-modules --ignore benchmark.py {posargs}
1623
deps =

0 commit comments

Comments
 (0)