Skip to content

Commit

Permalink
Merge pull request #549 from Cornices/switch-gh-actions
Browse files Browse the repository at this point in the history
Switch to Github Actions
  • Loading branch information
leplatrem committed Feb 9, 2021
2 parents 54e2968 + 01054b0 commit 2c8e208
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 40 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
on:
push:
branches:
- master
pull_request:

name: Unit Testing
jobs:
chore:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
matrix:
toxenv: [py35, py36, py37, py38, flake8]
include:
- toxenv: py35
python-version: "3.5"
- toxenv: py36
python-version: "3.6"
- toxenv: py37
python-version: "3.7"
- toxenv: py38
python-version: "3.8"
- toxenv: flake8
python-version: "3.X"

steps:
- uses: actions/checkout@v2

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

- name: Install virtualenv
run: |
pip install virtualenv
virtualenv --python=python3 .venv
- name: Print environment
run: |
source .venv/bin/activate
python --version
pip --version
- name: Install dependencies
run: |
source .venv/bin/activate
pip install tox
- name: Tox
run: |
source .venv/bin/activate
tox -e ${{ matrix.toxenv }}
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
if: matrix.toxenv != 'flake8'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()

requires = ['pyramid>=1.7', 'venusian']
requires = ['pyramid>=1.7,<2', 'venusian']

entry_points = ""
package_data = {}
Expand Down

0 comments on commit 2c8e208

Please sign in to comment.