Merge pull request #83 from Crunch-io/extra-data-to-sources #103
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: Pycrunch package test | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: | |
- 2.7 | |
- 3.6 | |
- 3.7 | |
- 3.8 | |
- 3.9 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
if: matrix.python-version != '2.7' | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install tox tox-gh-actions | |
- name: Test with tox ${{env.TOXENV}} | |
if: matrix.python-version == '3.6' | |
env: | |
TOXENV: py27,py36,coverage | |
run: tox | |
- name: Test with tox Python 3.7 | |
if: matrix.python-version == '3.7' | |
env: | |
TOXENV: py37 | |
run: tox | |
- name: Test with tox Python 3.8 | |
if: matrix.python-version == '3.8' | |
env: | |
TOXENV: py38 | |
run: tox | |
- name: Test with tox Python 3.9 | |
if: matrix.python-version == '3.9' | |
env: | |
TOXENV: py39 | |
run: tox | |
- name: Lint Test with tox Python 3.6 | |
if: matrix.python-version == '3.6' | |
env: | |
TOXENV: lint | |
run: tox | |
continue-on-error: true |