New Release #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'PR: pytest-lsp' | |
on: | |
pull_request: | |
branches: | |
- develop | |
- release | |
paths: | |
- 'lib/pytest-lsp/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: pip | |
cache-dependency-path: lib/pytest-lsp/pyproject.toml | |
- run: | | |
python --version | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade hatch towncrier | |
name: Setup Environment | |
- run: | | |
set -e | |
./scripts/make_release.py pytest-lsp | |
name: Set Version | |
- uses: hynek/build-and-inspect-python-package@v1 | |
with: | |
path: lib/pytest-lsp | |
test: | |
name: "Python v${{ matrix.python-version }} -- ${{ matrix.os }}" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
allow-prereleases: true | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: lib/pytest-lsp/pyproject.toml | |
- run: | | |
python --version | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade tox | |
name: Setup Environment | |
- run: | | |
cd lib/pytest-lsp | |
version=$(echo ${{ matrix.python-version }} | tr -d .) | |
python -m tox run -f "py${version}" | |
shell: bash | |
name: Run Tests |