-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test workflow * Drop 3.5 support from workflow * Use existing mdl action * config: Update flake8 config and action * lint: Resolve flake8 failure * Update action name * Add GitHub Actions change to changelog Co-authored-by: Matthew Emond <me@ucf.edu>
- Loading branch information
1 parent
3273b01
commit 9640fa8
Showing
4 changed files
with
39 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Run tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
|
||
steps: | ||
- 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: | | ||
python -m pip install --upgrade pip | ||
pip install -r tests_requirements.txt | ||
- name: Lint with flake8 | ||
run: flake8 | ||
- name: Check formatting | ||
run: black --check canvasapi tests | ||
- name: Sort imports | ||
run: isort --check canvasapi tests | ||
- name: Run tests | ||
run: coverage run -m unittest discover | ||
- name: Lint markdown files | ||
uses: bewuethr/mdl-action@v1 | ||
- name: Check if methods are alphabetical | ||
run: python scripts/alphabetic.py | ||
- name: Check for missing kwargs | ||
run: python scripts/find_missing_kwargs.py |
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
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,5 +1,4 @@ | ||
import inspect | ||
import operator | ||
import os | ||
import sys | ||
|
||
|
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