mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
clean up, add linting steps
This commit is contained in:
parent
6b5e8e2686
commit
6414fe4833
1 changed files with 18 additions and 9 deletions
|
@ -1,7 +1,4 @@
|
||||||
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
name: Testing
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
||||||
|
|
||||||
name: Python application
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -10,7 +7,7 @@ on:
|
||||||
branches: [ develop ]
|
branches: [ develop ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -19,6 +16,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
|
@ -29,14 +27,25 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: .venv
|
path: .venv
|
||||||
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }}
|
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install poetry
|
pip install poetry
|
||||||
poetry config --local virtualenvs.in-project true
|
poetry config --local virtualenvs.in-project true
|
||||||
poetry install --remove-untracked
|
poetry install --remove-untracked
|
||||||
|
|
||||||
|
- name: Code formatting (Black)
|
||||||
|
run: |
|
||||||
|
poetry run black --version
|
||||||
|
poetry run black --check --diff .
|
||||||
|
|
||||||
|
- name: Code Style (PyFlakes)
|
||||||
|
run: |
|
||||||
|
poetry run pyflakes --version
|
||||||
|
poetry run pyflakes jrnl features tests
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: poetry run pytest
|
||||||
poetry run pytest
|
|
||||||
- name: Test with behave
|
- name: Test with behave
|
||||||
run: |
|
run: poetry run behave --no-skipped --format progress2
|
||||||
poetry run behave --no-skipped --format progress2
|
|
Loading…
Add table
Reference in a new issue