Skip to content

Commit

Permalink
Update workflows and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 3, 2023
1 parent 67de30f commit 1e0ffad
Show file tree
Hide file tree
Showing 4 changed files with 298 additions and 259 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
push:
tags:
- '*'

name: Create Release

jobs:
build:
name: Build wheels
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.12']

permissions:
contents: write
id-token: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Create release
uses: softprops/action-gh-release@v1
with:
name: lvmapi ${{ github.ref_name }}

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel build
- name: Build wheels
run: |
pyproject-build -w
- name: Build source
run: |
pyproject-build -s
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
13 changes: 4 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,16 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.11']
python-version: ['3.11', '3.12']

steps:
- uses: actions/checkout@v3

- name: Cache Setup
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }}
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
Expand All @@ -39,7 +34,7 @@ jobs:
- name: Lint with ruff
run: |
pip install ruff
ruff src/lvmapi
ruff check src/
- name: Lint with black
run: |
Expand Down
Loading

0 comments on commit 1e0ffad

Please sign in to comment.