Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaster3558 committed Oct 23, 2022
1 parent 76e9643 commit 89ee598
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: lint

on: [push, pull_request]

jobs:
check:
name: Check
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Install dependencies
id: install-deps
run: |
python -m pip install --upgrade pip setuptools wheel black requests
pip install -U -r requirements.txt
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Run Black
run: |
black --check .
- name: Run Pyright
uses: jakebailey/pyright-action@v1
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: tests

on: [push, pull_request]

jobs:
pytest:
name: Tests
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Install dependencies
id: install-deps
run: |
python -m pip install -U .[tests]
- name: Run Tests
run: |
pytest

0 comments on commit 89ee598

Please sign in to comment.