This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
Python Package #634
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: Python Package | |
on: | |
push: | |
branches: | |
- '**' | |
schedule: | |
- cron: "5 1 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- 3.6 | |
- 3.7 | |
- 3.8 | |
- 3.9 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install flake8 pytest pytest-cov | |
pip install -e . | |
- name: Lint with flake8 | |
run: | | |
flake8 | |
- name: Test with pytest | |
run: | | |
pytest --cov --cov-fail-under=50 --cov-report=xml --cov-report=term | |
- name: Run dailyblink command | |
run: | | |
dailyblink | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 |