Use extras_require[test] instead of tests_require (#35) #81
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: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
schedule: | |
# Run automatically every day | |
- cron: "0 0 * * *" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.5, 3.6, 3.7, 3.8, 3.9] | |
include: | |
- os: macos-latest | |
python-version: 3.8 | |
- os: windows-latest | |
python-version: 3.8 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install test dependencies | |
run: | | |
pip install -U pytest pytest-repeat pytest-cov coverage | |
pip install -U flake8 flake8-blind-except flake8-builtins flake8-class-newline flake8-comprehensions flake8-deprecated flake8-docstrings flake8-import-order flake8-quotes pep8-naming pyenchant pylint scspell3k>=2.2 | |
- name: Run tests | |
run: | | |
python -m pytest |