Skip to content

Commit

Permalink
Add check CI
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Nov 30, 2022
1 parent 1429083 commit e4fa9d2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Check

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
pep8:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: ['3.11']

steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox -e pep8
doc:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: ['3.11']

steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox -e doc
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ commands=
basepython = python3
deps = flake8
commands =
flake8 pyperf setup.py doc/examples/
flake8 pyperf doc/examples/

[flake8]
# E501 line too long (88 > 79 characters)
Expand Down

0 comments on commit e4fa9d2

Please sign in to comment.