python-benedict/.github/workflows/pythonpackage.yml

38 lines
1001 B
YAML
Raw Normal View History

2019-12-12 17:38:52 +00:00
name: Python package
2021-12-06 17:30:11 +00:00
on: [push, pull_request]
2019-12-12 17:38:52 +00:00
jobs:
build:
2021-12-06 22:36:42 +00:00
runs-on: ${{ matrix.platform }}
2019-12-12 17:38:52 +00:00
strategy:
max-parallel: 4
matrix:
2021-12-06 22:36:42 +00:00
platform: [ubuntu-latest, macos-latest, windows-latest]
2021-11-24 18:01:55 +00:00
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
2019-12-12 17:38:52 +00:00
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
2021-12-06 17:30:11 +00:00
pip install -r requirements-test.txt
2019-12-12 17:38:52 +00:00
- name: Test with unittest
run: |
2021-12-06 17:30:11 +00:00
coverage run -m unittest
coverage xml -o ./coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
verbose: true