feat: add requirements #276
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: Continuous Integration | |
on: [push, pull_request] | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ENVIRONMENT: test | |
VERBOSE: true | |
TERM: xterm | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Show ref | |
run: | | |
echo "Checking out $GITHUB_REF..." | |
- uses: actions/setup-python@v2 | |
name: Set up Python ${{ matrix.python-version }} | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Upgrade PIP and packages | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
- name: Install dependencies | |
run: | | |
cat requirements-dev.txt | xargs -t -n1 -P4 pip install | |
python setup.py develop | |
- name: Run Tests | |
run: | | |
python -m tox -e py$(echo "${{ matrix.python-version }}" | tr -d '.') --parallel all | |
- name: Run Coverage | |
run: | | |
coveralls --service github |