Skip to content

Commit

Permalink
Merge pull request #349 from benbariteau/bariteau/migrate_to_github_a…
Browse files Browse the repository at this point in the history
…ctions

migrate to GitHub actions
  • Loading branch information
benbariteau authored Oct 3, 2023
2 parents 756a6b7 + bba4238 commit 2d1935d
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 15 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: pypi

on:
push:
tags:
- v*

jobs:
test:
strategy:
matrix:
python:
- version: "3.8"
toxenv: "py38"
- version: "3.9"
toxenv: "py39"
- version: "3.10"
toxenv: "py310"
- version: "3.11"
toxenv: "py311"
- version: "3.12"
toxenv: "py312"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python.version }}
- run: python -m pip install --upgrade setuptools pip 'tox<4' virtualenv
- run: tox -e ${{ matrix.python.toxenv }}
pypi:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: python setup.py sdist
- uses: pypi/gh-action-pypi-publish@v1.8.10
31 changes: 31 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: test

on:
push:
branches: [master]
tags: '*'
pull_request:

jobs:
test:
strategy:
matrix:
python:
- version: "3.8"
toxenv: "py38"
- version: "3.9"
toxenv: "py39"
- version: "3.10"
toxenv: "py310"
- version: "3.11"
toxenv: "py311"
- version: "3.12"
toxenv: "py312"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python.version }}
- run: python -m pip install --upgrade setuptools pip 'tox<4' virtualenv
- run: tox -e ${{ matrix.python.toxenv }}
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tox]
envlist = py27,py34,py35,py310
envlist = py38, py39, py310, py311, py312
skip_missing_interpreters = true

[testenv]
passenv = TERM
Expand Down

0 comments on commit 2d1935d

Please sign in to comment.