diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfed08e..be57b90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 @@ -76,3 +76,34 @@ jobs: with: pytest-coverage-path: pytest-coverage.txt junitxml-path: pytest.yml + + test_py36_py37: + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + python-version: ["3.6", "3.7"] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: "pip" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install pytest pytest-cov pytest-github-actions-annotate-failures + pip install .[dev] + + - name: Test with pytest + run: | + ( + set -o pipefail + pytest --junitxml=pytest.yml \ + --cov-report=term-missing:skip-covered --cov=bdpy tests | tee pytest-coverage.txt + ) +