Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Pin sphinx to latest version 7.2.6 #28

Pin sphinx to latest version 7.2.6

Pin sphinx to latest version 7.2.6 #28

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12-dev"]
steps:
- uses: actions/checkout@v3
- name: Install pipenv
run: pipx install "pipenv"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pipenv'
- name: Get python path
id: python-path
run: |
echo "path=$(python -c 'import sys; print(sys.executable)')" >> $GITHUB_OUTPUT
- name: Install dependencies
env:
PIPENV_DEFAULT_PYTHON_VERSION: ${{ matrix.python-version }}
PYTHONWARNINGS: ignore:DEPRECATION
PYTHONIOENCODING: "utf-8"
run: |
python -m pip install -e . --upgrade
pipenv install --deploy --dev --python=${{ steps.python-path.outputs.path }}
- name: Print python versions
run: |
python -V
pipenv run python -V
- name: Test with pytest
run: pipenv run py.test --cov=./ --cov-report=xml
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}