Skip to content

Commit

Permalink
Merge pull request #218 from takluyver/gh-actions
Browse files Browse the repository at this point in the history
Switch from Travis CI to Github Actions
  • Loading branch information
takluyver committed Dec 11, 2020
2 parents b65da7d + d1d8a9f commit 89431e7
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 18 deletions.
8 changes: 6 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[run]
omit =
nsist/tests/*
nsist/_system_path.py
*/tests/*
*/nsist/_system_path.py

[paths]
package =
nsist/
*/site-packages/nsist
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.5, 3.6, 3.7, 3.8, 3.9, ]
steps:
- uses: actions/checkout@v2

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions codecov
- name: Run tests
run: tox -- -v

- name: Codecov upload
run: codecov
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ environment:

install:
- cinst nsis
- "%PYTHON%\\python.exe -m pip install -U tox virtualenv --no-warn-script-location"
- "%PYTHON%\\python.exe -m pip install -U tox virtualenv codecov --no-warn-script-location"

build: off

test_script:
- "%PYTHON%\\python.exe -m tox -e python -- -v"
- "%PYTHON%\\python.exe -m codecov"
11 changes: 10 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@
isolated_build = True
envlist = python

[gh-actions]
python =
3.5: python
3.6: python
3.7: python
3.8: python
3.9: python

[testenv]
deps = pytest
pytest-cov
requests
requests_download
distlib
jinja2
yarg
testpath
responses
commands = pytest nsist/tests {posargs}
commands = pytest --cov=nsist nsist/tests {posargs}

[testenv:notnetwork]
commands = pytest -m "not network" nsist/tests {posargs}

0 comments on commit 89431e7

Please sign in to comment.