Skip to content

Commit

Permalink
Switch to gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
joente committed Dec 7, 2021
1 parent 112e89b commit dad76e0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-versions: [3.6, 3.9]
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pycodestyle
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests with pytest
run: |
pytest
- name: Lint with PyCodeStyle
run: |
find . -name \*.py -exec pycodestyle {} +
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

0 comments on commit dad76e0

Please sign in to comment.