Skip to content

Commit 97d825b

Browse files
authored
Merge pull request #340 from astanin/dev-ci-github-actions
Switch from CircleCI to GitHub Actions
2 parents b35a362 + 3431047 commit 97d825b

File tree

6 files changed

+36
-81
lines changed

6 files changed

+36
-81
lines changed

.circleci/config.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.circleci/requirements.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.
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://circleci.com/gh/astanin/python-tabulate.svg?style=svg)](https://circleci.com/gh/astanin/python-tabulate/tree/master) [![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
-------------

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ environment:
99
# isn't covered by this document) at the time of writing.
1010

1111
#- PYTHON: "C:\\Python39"
12-
- PYTHON: "C:\\Python310"
13-
- PYTHON: "C:\\Python311"
14-
- PYTHON: "C:\\Python312"
12+
#- PYTHON: "C:\\Python310"
13+
#- PYTHON: "C:\\Python311"
14+
#- PYTHON: "C:\\Python312"
1515
- PYTHON: "C:\\Python39-x64"
1616
- PYTHON: "C:\\Python310-x64"
1717
- PYTHON: "C:\\Python311-x64"

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)