Skip to content

Commit

Permalink
Update Python versions and use Github actions for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-adams committed Nov 14, 2024
1 parent 946d59a commit 75c800c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 25 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Python package

on:
push:
branches:
- master
tags:
- '**'
pull_request:




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

steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Run tests
run: tox
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

17 changes: 5 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
[tox]
envlist = py{27,37,38}, flake8
env_list =
py3

[testenv]
commands =
commands =
py.test
deps =
pytest==2.8.7


[testenv:flake8]
commands =
flake8
deps =
flake8
flake8-import-order
pep8-naming
deps =
pytest==8.3.3

0 comments on commit 75c800c

Please # to comment.