From 75c800c578ea2ae8b420235d96df1186638dbd0c Mon Sep 17 00:00:00 2001 From: Mark Adams Date: Thu, 14 Nov 2024 10:30:08 -0600 Subject: [PATCH] Update Python versions and use Github actions for builds --- .github/workflows/python-tests.yml | 32 ++++++++++++++++++++++++++++++ .travis.yml | 13 ------------ tox.ini | 17 +++++----------- 3 files changed, 37 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/python-tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml new file mode 100644 index 0000000..b374b7e --- /dev/null +++ b/.github/workflows/python-tests.yml @@ -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 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d2ef3b2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: python -sudo: false -python: - - "2.7" - - "3.7" - - "3.8" -install: - - "pip install -U flake8 pytest" - - "pip install -e ." -before_script: - - "flake8" -script: - - py.test diff --git a/tox.ini b/tox.ini index 33a8fdc..a2a0b7a 100644 --- a/tox.ini +++ b/tox.ini @@ -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 \ No newline at end of file