Skip to content

Commit

Permalink
ci: github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfermigier committed Nov 18, 2019
1 parent 61d7981 commit 08d5d83
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/python-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check back-end

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry install
yarn
- name: Lint with flake8, eslint, etc.
run: |
poetry run flake8 abilian
poetry run rst-lint *.rst
poetry run sphinx-build -W -b dummy docs/ docs/_build/
# poetry run bandit -s B101 `find abilian -name '*.py' | grep -v test`
27 changes: 27 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check back-end

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry install
yarn
- name: Test with pytest
run: |
poetry run pytest

0 comments on commit 08d5d83

Please sign in to comment.