Browse Source
Merge pull request #93 from Deuchnord/ci-split-python-workflow
Split Python workflow to enhance DX
tags/v0.8.0
Jérôme Deuchnord
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
44 additions and
8 deletions
-
.github/workflows/i18n.yml
-
.github/workflows/pylint.yml
-
.github/workflows/unit-tests.yml
|
|
@@ -1,4 +1,4 @@ |
|
|
|
name: Python application |
|
|
|
name: Internationalization check |
|
|
|
|
|
|
|
on: [push, pull_request] |
|
|
|
|
|
|
@@ -16,13 +16,6 @@ jobs: |
|
|
|
run: | |
|
|
|
pip install --upgrade pip pipenv |
|
|
|
pipenv sync -d |
|
|
|
- name: Unit tests |
|
|
|
run: | |
|
|
|
pipenv run python -m coverage run -m unittest test |
|
|
|
pipenv run codecov --token=${{ secrets.CODECOV_TOKEN }} |
|
|
|
- name: Lint |
|
|
|
run: | |
|
|
|
pipenv run pylint kosmorro *.py kosmorrolib/*.py |
|
|
|
- name: Check i18n |
|
|
|
run: | |
|
|
|
pipenv run python setup.py extract_messages --output-file=/tmp/kosmorro-messages.pot > /dev/null |
|
|
@@ -0,0 +1,21 @@ |
|
|
|
name: PyLint |
|
|
|
|
|
|
|
on: [push, pull_request] |
|
|
|
|
|
|
|
jobs: |
|
|
|
build: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v1 |
|
|
|
- name: Set up Python |
|
|
|
uses: actions/setup-python@v1 |
|
|
|
with: |
|
|
|
python-version: 3.8 |
|
|
|
- name: Install dependencies |
|
|
|
run: | |
|
|
|
pip install --upgrade pip pipenv |
|
|
|
pipenv sync -d |
|
|
|
- name: Lint |
|
|
|
run: | |
|
|
|
pipenv run pylint kosmorro *.py kosmorrolib/*.py |
|
|
@@ -0,0 +1,22 @@ |
|
|
|
name: Unit tests |
|
|
|
|
|
|
|
on: [push, pull_request] |
|
|
|
|
|
|
|
jobs: |
|
|
|
build: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v1 |
|
|
|
- name: Set up Python |
|
|
|
uses: actions/setup-python@v1 |
|
|
|
with: |
|
|
|
python-version: 3.8 |
|
|
|
- name: Install dependencies |
|
|
|
run: | |
|
|
|
pip install --upgrade pip pipenv |
|
|
|
pipenv sync -d |
|
|
|
- name: Unit tests |
|
|
|
run: | |
|
|
|
pipenv run python -m coverage run -m unittest test |
|
|
|
pipenv run codecov --token=${{ secrets.CODECOV_TOKEN }} |