Skip to content

Commit

Permalink
Use GitHub Actions instead of Travis and AppVeyor (#54)
Browse files Browse the repository at this point in the history
* Use extras_require[test] instead of tests_require
* Update list of deprecations to ignore in other packages
* Switch from Travis and AppVeyor to GitHub Actions
  • Loading branch information
cottsay authored Dec 3, 2021
1 parent 74a3511 commit 78ca80a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 34 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run tests

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

jobs:
setup:
runs-on: ubuntu-latest
outputs:
strategy: ${{steps.load.outputs.strategy}}

steps:
- uses: actions/checkout@v2
with:
repository: colcon/ci
- id: load
run: echo "::set-output name=strategy::$(echo $(cat strategy.json))"

pytest:
needs: [setup]
strategy: ${{fromJson(needs.setup.outputs.strategy)}}
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{matrix.python}}
- uses: colcon/ci@v1
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

15 changes: 0 additions & 15 deletions appveyor.yml

This file was deleted.

13 changes: 10 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ install_requires =
notify2; sys_platform == 'linux'
pywin32; sys_platform == 'win32'
packages = find:
tests_require =
zip_safe = false

[options.extras_require]
test =
flake8>=3.6.0
flake8-blind-except
flake8-builtins
Expand All @@ -45,7 +48,6 @@ tests_require =
pytest
pytest-cov
scspell3k>=2.2
zip_safe = false

[options.data_files]
# distutils replaces dashes in keys with underscores
Expand All @@ -64,8 +66,10 @@ share/colcon_notification/colcon-terminal-notifier.app/Contents/Resources/en.lpr
[tool:pytest]
filterwarnings =
error
# Suppress deprecation warning in flake8
# Suppress deprecation warnings in other packages
ignore:lib2to3 package is deprecated::scspell
ignore:SelectableGroups dict interface is deprecated::flake8
ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated::pyreadline
junit_suite_name = colcon-notification

[options.entry_points]
Expand All @@ -86,3 +90,6 @@ colcon_notification.desktop_notification.image = *.ico

[flake8]
import-order-style = google

[coverage:run]
source = colcon_notification

0 comments on commit 78ca80a

Please sign in to comment.