Skip to content

Commit

Permalink
Merge pull request #260 from Kinto/switch-to-github-actions
Browse files Browse the repository at this point in the history
Switch to Github Actions
  • Loading branch information
leplatrem committed Apr 20, 2021
2 parents 1da16fa + 4641708 commit 359d1fc
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 30 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[run]
omit = kinto_emailer/tests/*
relative_files = True
61 changes: 61 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
on:
push:
branches:
- master
pull_request:

name: Unit Testing
jobs:
chore:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
matrix:
toxenv: [py38, flake8, functional]
include:
- toxenv: py38
python-version: "3.8"
- toxenv: flake8
python-version: "3.X"
- toxenv: functional
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: Run Kinto
if: matrix.toxenv == 'functional'
run: |
source .venv/bin/activate
make run-kinto & sleep 5
- 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 }}
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

0 comments on commit 359d1fc

Please sign in to comment.