djLint/.github/workflows/test.yml
sur.la.route b2b11fe493
Merge pull request #211 from Riverside-Healthcare/renovate/actions-setup-python-2.x
chore(deps) Update actions/setup-python action to v2
2022-04-05 10:10:23 -05:00

31 lines
820 B
YAML

name: test
on: [push, pull_request]
jobs:
test:
name: python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, '3.10']
fail-fast: true
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install deps
run: python -m pip install tox poetry tox-poetry
- name: test
run: tox -e test
- name: upload cov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: true
verbose: true