-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workflow actions to latest version(s)
- Loading branch information
1 parent
03e362e
commit 8d9f80b
Showing
1 changed file
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
name: ci | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
ci: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python 3.6 | ||
uses: actions/setup-python@v1 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.6 | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 | ||
pip install pydocstyle | ||
- name: Lint with flake8 | ||
- name: Lint with flake8 and pydocstyle | ||
run: | | ||
flake8 . --max-line-length=120 --show-source --statistics | ||
pydocstyle . --add-ignore=D202 |