Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: test

on:
push:
branches:
- master
- "test-me-*"
tags:
- "*"
pull_request:
branches:
- master

# Set permissions at the job level.
permissions: {}

jobs:
lint:
runs-on: ubuntu-20.04
timeout-minutes: 10
permissions:
contents: read

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox

- name: Lint
run: tox -e lint

test:
runs-on: ubuntu-20.04
timeout-minutes: 10
permissions:
contents: read

strategy:
fail-fast: false
matrix:
python: [
"3.7.1",
"3.7",
"3.8",
"3.9",
"3.10",
"3.11",
]

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox

- name: Test
run: tox -e py
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ commands = python -m unittest discover tests

[testenv:lint]
description = check the code style
basepython = python3.7
basepython = python3
deps = flake8
commands = flake8 -j0 {posargs}

Expand Down