| 1 |
name: Python package |
| 2 |
|
| 3 |
on: [push] |
| 4 |
|
| 5 |
jobs: |
| 6 |
build-on-latest: |
| 7 |
|
| 8 |
runs-on: ubuntu-latest |
| 9 |
strategy: |
| 10 |
fail-fast: false |
| 11 |
matrix: |
| 12 |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] |
| 13 |
|
| 14 |
steps: |
| 15 |
- uses: actions/checkout@v3 |
| 16 |
- name: Set up Python ${{ matrix.python-version }} |
| 17 |
uses: actions/setup-python@v4 |
| 18 |
with: |
| 19 |
python-version: ${{ matrix.python-version }} |
| 20 |
- name: Install dependencies |
| 21 |
run: | |
| 22 |
python -m pip install --upgrade pip |
| 23 |
pip install pytest coverage pytest-cov |
| 24 |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi |
| 25 |
pip install -e . |
| 26 |
- name: Test with pytest |
| 27 |
run: | |
| 28 |
python src/tests/configobj_doctests.py |
| 29 |
python -m configobj.validate |
| 30 |
py.test -c setup.cfg --color=yes --cov=configobj --cov-report=term --cov-report=html --cov-report=xml |