Skip to content

Commit d8be695

Browse files
committed
Run tests in Github action
1 parent 0d57f8d commit d8be695

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python package
5+
6+
on:
7+
push:
8+
branches: [ '*' ]
9+
pull_request:
10+
branches: [ $default-branch ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
python-version: ["3.10", "3.11", "3.12", "3.13"]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install tox
31+
- name: tox
32+
run: tox

tox.ini

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
[tox]
2-
envlist=py27,py35,py36,py37
1+
# commands=python setup.py test []
2+
# deps=nose
33

44
[testenv]
5-
commands=python setup.py test []
6-
deps=nose
5+
deps =
6+
flake8
7+
pytest
8+
commands =
9+
# flake8 --max-line-length=88 setup.py ripe/atlas/sagan/ tests/
10+
pytest -r a {posargs}

0 commit comments

Comments
 (0)