Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Add yapf linter step and make CI explicit #116

Merged
merged 7 commits into from
Dec 17, 2021
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 37 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,28 @@ name: Continuous Integration
on: [ pull_request ]

jobs:
test:
name: Checks
lint:
name: Lint check
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --user poetry
poetry install
- name: Run Linter
run: ./scripts/check_lint.sh

format:
name: Formatting check
runs-on: ubuntu-latest
timeout-minutes: 30 # min
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand All @@ -19,8 +37,23 @@ jobs:
pip install --user poetry
poetry install
- name: Check format
run: ./scripts/check_format.sh

test:
name: Unit tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- name: Install dependencies
run: |
./scripts/check_format.sh
python -m pip install --upgrade pip
pip install --user poetry
poetry install
- name: Run tests
run: |
poetry run pytest .