Skip to content

Commit

Permalink
Merge 4db0d7f into 3273b01
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemcbride committed Mar 19, 2021
2 parents 3273b01 + 4db0d7f commit 24a8453
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/run-tests.yml
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
### General

- Added `RateLimitExceeded` exception to distinguish between being rate limited and being otherwise forbidden from accesing a resource. It is a subclass of the `Forbidden` exception.

- Set up GitHub Actions for running tests

## [2.1.0] - 2020-12-04

Expand Down
1 change: 0 additions & 1 deletion scripts/find_missing_kwargs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import inspect
import operator
import os
import sys

Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ source = canvasapi/

[flake8]
max-line-length = 99
exclude = .git,__pycache__,docs/conf.py,old,build,dist
statistics = True
show_source = True

[isort]
profile=black

0 comments on commit 24a8453

Please sign in to comment.