mirror of
https://github.com/ycd/manage-fastapi.git
synced 2021-11-08 01:34:39 +03:00
30 lines
714 B
YAML
30 lines
714 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.6, 3.7, 3.8]
|
|
fail-fast: true
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install Poetry
|
|
run: pip install poetry
|
|
- name: Install Dependencies
|
|
run: poetry install
|
|
- name: Test
|
|
run: poetry run pytest tests/ --cov=manage_fastapi --cov-report=term-missing:skip-covered --cov-report=xml
|
|
- name: Upload coverage
|
|
uses: codecov/codecov-action@v1
|