Skip to content

Commit

Permalink
moving CI to github actions, py3.11 tests pass too
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Feb 6, 2023
1 parent 8c5ef88 commit 4579b72
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 21 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
source =
../xlcalculator
*/site-packages/xlcalculator
relative_files = True

[report]
show_missing = true
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: xlcalculator

on:
- push
- pull_request

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

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
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Excel Calculator
================


.. image:: https://travis-ci.org/bradbase/xlcalculator.png?branch=master
:target: https://travis-ci.org/bradbase/xlcalculator
.. image:: https://github.com/bradbase/xlcalculator/actions/workflows/test.yml/badge.svg
:target: https://github.com/bradbase/xlcalculator/actions

.. image:: https://coveralls.io/repos/github/bradbase/xlcalculator/badge.svg?branch=master
:target: https://coveralls.io/github/bradbase/xlcalculator?branch=master
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def read(*rnames):
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Office/Business :: Financial :: Spreadsheet",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
Expand Down
9 changes: 7 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
[tox]
envlist = py39, py310, flake8
envlist = py39, py310, py311, flake8

[gh-actions]
python =
3.9: py39
3.10: py310, flake8
3.11: py311

[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH TRAVIS_PULL_REQUEST
commands =
py.test -rw -s --tb=native --cov=xlcalculator --cov-report=term-missing tests/
deps =
Expand Down

0 comments on commit 4579b72

Please sign in to comment.