Skip to content

Commit

Permalink
Merge pull request #38 from alexmohr/gitlab-ci
Browse files Browse the repository at this point in the history
ci: change travis to gitlab ci
  • Loading branch information
alexmohr authored Apr 6, 2024
2 parents c834574 + d4c6abd commit df1c216
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 33 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Python CI

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

jobs:
linting:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.10" ]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install pycodestyle pydocstyle pylint pyflakes flake8
- name: Linting with pycodestyle
run: find . -name \*.py -exec pycodestyle {} +
- name: Linting with pydocstyle
run: find . -name \*.py -exec pydocstyle {} +
- name: Linting with pylint
run: find . -name \*.py -exec pylint --disable=F0401,W0613,C0415,W0703 {} +
- name: Linting with pyflakes
run: find . -name \*.py -exec pyflakes {} +
- name: Linting with flake8
run: find . -name \*.py -exec flake8 {} +

33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

0 comments on commit df1c216

Please # to comment.