Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Update identification.py #289

Update identification.py

Update identification.py #289

Workflow file for this run

name: Tests
on: [push]
jobs:
check:
name: Check linting & types
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Set up poetry
uses: snok/install-poetry@v1.1.1
- name: Set up cache
uses: actions/cache@v1
with:
path: .venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-venv-
- name: Install dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
poetry install
- name: Run flake8 & black
run: |
poetry run flake8 --exclude .venv
poetry run black --check . --exclude .venv
poetry run mypy .
test:
name: Run tests & get coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Set up poetry
uses: snok/install-poetry@v1.1.1
- name: Set up cache
uses: actions/cache@v1
with:
path: .venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-venv-
- name: Install dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
poetry install
- name: Test and generate coverage report
run: |
poetry run pytest --cov=acamodels --cov-report=xml
- name: Upload to codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true