Skip to content

Commit

Permalink
[pypi] Change python version to supported in workflows (#8)
Browse files Browse the repository at this point in the history
Add a lint workflow as well.
  • Loading branch information
zbowling authored Jul 30, 2024
1 parent 9f1705f commit f9dc651
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Lint and check
on: [ push, pull_request ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
15 changes: 6 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@ jobs:
- name: "Checkout code"
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Setup pdm
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.12"
python-version: "3.9"

- name: Build package
run: pdm build
run: |
pip install build
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ maintainers = [
description = "Stacked PRs for GitHub."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.8"
requires-python = ">=3.9"
keywords = ["stacked-prs", "github", "pull-requests", "stack-pr", "git", "version-control"]
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down

0 comments on commit f9dc651

Please sign in to comment.