diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 830154543b..be772e86d6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,9 +19,9 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: [3.7, 3.8, 3.9, "3.10"] include: - - python-version: 3.9 + - python-version: "3.10" dev: true steps: @@ -31,20 +31,12 @@ jobs: uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} - - - name: Cache python wheels - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: | - ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py', 'docs/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip-${{ matrix.python-version }}- - ${{ runner.os }}-pip- + cache: "pip" + cache-dependency-path: "pyproject.toml" - name: Install dependencies run: | - python -m pip install --upgrade pip setuptools wheel + python -m pip install --upgrade pip python -m pip install -e .[coverage] - name: Install pre-release dependencies @@ -86,28 +78,20 @@ jobs: uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} + cache: "pip" + cache-dependency-path: "pyproject.toml" - name: Set up Node/yarn uses: actions/setup-node@v1 with: node-version: "16.x" - - name: Cache python wheels - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: | - ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py', 'docs/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip-${{ matrix.python-version }}- - ${{ runner.os }}-pip- - - name: Cache node_modules uses: actions/cache@v2 with: path: "node_modules" key: | - ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} + ${{ runner.os }}-node-modules-${{ hashFiles('package.json') }} - name: Install dependencies run: | @@ -184,8 +168,8 @@ jobs: python-version: 3.7 - name: Build package run: | - python -m pip install -U pip setuptools wheel - python setup.py sdist bdist_wheel + python -m pip install -U pip build + python -m build - name: Publish uses: pypa/gh-action-pypi-publish@v1.1.0 with: diff --git a/pyproject.toml b/pyproject.toml index a2f0526f33..1c3ab04165 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ description = "Bootstrap-based Sphinx theme from the PyData community" dynamic = ["version"] readme = "README.md" -requires-python = ">=3.5" +requires-python = ">=3.7" dependencies = [ "sphinx", "beautifulsoup4",