Merge pull request #31 from harounrusul/master #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: [push, pull_request] | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.6, 3.7, 3.8] | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install pytest==6.2 | |
- name: Install app | |
run: | | |
python -m pip install -e . | |
- name: Unit tests | |
run: | | |
pytest | |
# black: | |
# name: Check formatting | |
# runs-on: ubuntu-18.04 | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v2 | |
# with: | |
# fetch-depth: 1 | |
# - name: Set up Python | |
# uses: actions/setup-python@v2 | |
# with: | |
# python-version: '3.7' | |
# - name: Install dependencies | |
# run: | | |
# python -m pip install --upgrade black | |
# - name: Check formatting | |
# run: | | |
# black --check . |