Skip to content

Commit

Permalink
replace tests with github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed May 5, 2024
1 parent 4755553 commit 54ab554
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 18 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Code Style
on: [ push, pull_request ]

jobs:
isort:
name: isort
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip3 install isort
- name: Run isort
run: 'isort --check'
pycodestyle1:
name: pycodestyle (everything but tests)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip3 install pycodestyle
- name: Run pycodestyle
run: 'pycodestyle --ignore=E402,E501 --exclude=voctocore/tests,doc,example-scripts .'
pycodestyle2:
name: pycodestyle (tests only)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip3 install pycodestyle
- name: Run pycodestyle
run: 'pycodestyle --ignore=E501 voctocore/tests'
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

8 changes: 0 additions & 8 deletions check_pep8.sh

This file was deleted.

0 comments on commit 54ab554

Please sign in to comment.