Skip to content

Commit

Permalink
Add ci with codetools
Browse files Browse the repository at this point in the history
  • Loading branch information
surgura committed Apr 17, 2024
1 parent 42d89c6 commit bdbb587
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/codetools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci

on: [push, pull_request]

env:
PACKAGE: virtual_ship

jobs:
codetools:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: install
run: pip install ".[dev]"
- name: flake8
run: flake8 ./$PACKAGE
- name: pydocstyle
run: pydocstyle ./$PACKAGE
- name: sort-all
run: |
find ./$PACKAGE -type f -name '__init__.py' -print0 | xargs -0 sort-all
[[ -z $(git status -s) ]]
git checkout -- .
- name: black
run: black ./$PACKAGE
- name: isort
run: isort ./$PACKAGE

0 comments on commit bdbb587

Please sign in to comment.