Skip to content

chore: add new env var. #44

chore: add new env var.

chore: add new env var. #44

Workflow file for this run

name: CI
on: [pull_request]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- uses: actions/setup-python@v2
- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
- run: poetry install
tests:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- uses: actions/setup-python@v2
- uses: snok/install-poetry@v1
- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
- run: poetry run pytest --cov=fcmeans
linter:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- uses: actions/setup-python@v2
- uses: snok/install-poetry@v1
- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
- run: |
poetry run black . --line-length=79
poetry run isort **/*.py -c
poetry run flake8 --exclude ".*"