Skip to content

Merge pull request #19 from florencejt/bugs/numworkerswarning #29

Merge pull request #19 from florencejt/bugs/numworkerswarning

Merge pull request #19 from florencejt/bugs/numworkerswarning #29

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches: [ "main" ]
pull_request:
types:
- closed
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
python -m pip install .
- name: Test with pytest
run: |
pip install pytest pytest-cov pytest-mock
pytest ./tests/ --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html