1
0
mirror of https://github.com/ycd/manage-fastapi.git synced 2021-11-08 01:34:39 +03:00
Files
manage-fastapi/.github/workflows/test.yml
Marcelo Trylesinski 41648fb46e Support Windows and MacOS (#36)
* Support Windows and MacOS

* Add questionary dependency

* Remove the tests

* Remove print
2021-09-02 22:24:13 +02:00

32 lines
799 B
YAML

name: Test
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
test:
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
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