Skip to content

Commit

Permalink
Merge pull request #340 from astanin/dev-ci-github-actions
Browse files Browse the repository at this point in the history
Switch from CircleCI to GitHub Actions
  • Loading branch information
astanin authored Sep 26, 2024
2 parents b35a362 + 3431047 commit 97d825b
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 81 deletions.
67 changes: 0 additions & 67 deletions .circleci/config.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .circleci/requirements.txt

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/github-actions-tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: python-tabulate

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pip install tabulate
Build status
------------

[![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)
[![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)

Library usage
-------------
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ environment:
# isn't covered by this document) at the time of writing.

#- PYTHON: "C:\\Python39"
- PYTHON: "C:\\Python310"
- PYTHON: "C:\\Python311"
- PYTHON: "C:\\Python312"
#- PYTHON: "C:\\Python310"
#- PYTHON: "C:\\Python311"
#- PYTHON: "C:\\Python312"
- PYTHON: "C:\\Python39-x64"
- PYTHON: "C:\\Python310-x64"
- PYTHON: "C:\\Python311-x64"
Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
envlist = lint, py{38, 39, 310, 311, 312}
isolated_build = True

[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[testenv]
commands = pytest -v --doctest-modules --ignore benchmark.py {posargs}
deps =
Expand Down

0 comments on commit 97d825b

Please sign in to comment.