Skip to content

Commit

Permalink
Use GitHub Actions instead of Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Dec 8, 2020
1 parent a64c342 commit 95a93cd
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 17 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Run Tox

# yamllint disable rule:truthy
on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Run Tox tests
id: test
uses: fedora-python/tox-github-action@master
with:
tox_env: py39,lint
# Same list of packages in Dockerfile
dnf_install: >-
--repo fedora --repo updates
python3-requests
python3-jira
python3-fedmsg-core
python3-pygithub
python3-jinja2
python3-pypandoc
python3-requests-kerberos
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,lint
envlist = py39,lint

[testenv]
passenv = TRAVIS TRAVIS_*
Expand All @@ -13,18 +13,19 @@ setenv =
CONFLUENCE_USERNAME=mock_confluence_username
CONFLUENCE_PASSWORD=mock_confluence_password
basepython =
py37: python3.7
py39: python3.9
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
sitepackages = False
sitepackages = True
whitelist_externals = /usr/bin/flake8
commands =
coverage run -m pytest {posargs} --ignore=tests/integration_tests
# Add the following line locally to get an HTML report --cov-report html:htmlcov-py37
# Add the following line locally to get an HTML report --cov-report html:htmlcov-py39

[testenv:lint]
skip_install = true
basepython = python3.7
basepython = python3.9
deps =
flake8
commands =
Expand Down

0 comments on commit 95a93cd

Please sign in to comment.