Skip to content

Commit

Permalink
Merge pull request #86 from swyddfa/develop
Browse files Browse the repository at this point in the history
New Release
  • Loading branch information
alcarney committed Oct 6, 2023
2 parents afd2275 + dc6fc53 commit 8f25bc8
Show file tree
Hide file tree
Showing 105 changed files with 4,961 additions and 3,186 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/docs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/lsp-devtools-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest]

steps:
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/lsp-devtools-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: 'Release: lsp-devtools'

on:
push:
branches:
- release
paths:
- 'lib/lsp-devtools/**'

jobs:
release:
name: lsp-devtools release
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/lsp-devtools
permissions:
id-token: write

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "3.10"

- run: |
sudo apt update
sudo apt install pandoc
python --version
python -m pip install --upgrade pip
python -m pip install build bump2version towncrier docutils
name: Install Build Tools
- run: |
set -e
./scripts/make-release.sh lsp-devtools
name: Set Version
id: info
- name: Package
run: |
cd lib/lsp-devtools
python -m build
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: 'dist'
path: lib/lsp-devtools/dist

- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: lib/lsp-devtools/dist/

- name: Create Release
run: |
gh release create "${RELEASE_TAG}" \
--title "lsp-devtools v${VERSION} - ${RELEASE_DATE}" \
-F lib/lsp-devtools/.changes.html \
./lib/lsp-devtools/dist/*
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 8 additions & 6 deletions .github/workflows/pytest-lsp-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v3
Expand All @@ -23,6 +23,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- run: |
python --version
Expand All @@ -37,24 +38,25 @@ jobs:
# dev version number e.g. v1.2.3-dev4
./scripts/make-release.sh pytest-lsp
name: Set Version
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest'
- run: |
cd lib/pytest-lsp
version=$(echo ${{ matrix.python-version }} | tr -d .)
python -m tox -e `tox -l | grep $version | tr '\n' ','`
python -m tox run -f "py${version}"
shell: bash
name: Test
- name: Package
run: |
cd lib/pytest-lsp
python -m build
if: always() && matrix.python-version == '3.10'
if: always() && matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest'

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: 'dist'
path: lib/pytest-lsp/dist
if: always() && matrix.python-version == '3.10'
if: always() && matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest'
67 changes: 67 additions & 0 deletions .github/workflows/pytest-lsp-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: 'Release: pytest-lsp'

on:
push:
branches:
- release
paths:
- 'lib/pytest-lsp/**'

jobs:
release:
name: pytest-lsp release
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pytest-lsp
permissions:
id-token: write

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "3.10"

- run: |
sudo apt update
sudo apt install pandoc
python --version
python -m pip install --upgrade pip
python -m pip install build bump2version towncrier docutils
name: Install Build Tools
- run: |
set -e
./scripts/make-release.sh pytest-lsp
name: Set Version
id: info
- name: Package
run: |
cd lib/pytest-lsp
python -m build
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: 'dist'
path: lib/pytest-lsp/dist

- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: lib/pytest-lsp/dist/

- name: Create Release
run: |
gh release create "${RELEASE_TAG}" \
--title "pytest-lsp v${VERSION} - ${RELEASE_DATE}" \
-F lib/pytest-lsp/.changes.html \
./lib/pytest-lsp/dist/*
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 8f25bc8

Please sign in to comment.