Merge pull request #24 from makermelissa/main

Pin python version to 3.11
This commit is contained in:
Melissa LeBlanc-Williams 2024-04-15 14:03:07 -07:00 committed by GitHub
commit 9f669806d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 41 additions and 3 deletions

13
.github/release-drafter.yml vendored Normal file
View file

@ -0,0 +1,13 @@
# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams, written for Adafruit Industries
#
# SPDX-License-Identifier: MIT
change-template: "- $TITLE #$NUMBER by @$AUTHOR"
template: |
## What's Changed
$CHANGES
To use in CPython, `pip3 install Adafruit-Python-Shell`.
Read the [docs](https://circuitpython.readthedocs.io/projects/shell/en/latest/) for info on how to use it.

View file

@ -18,10 +18,10 @@ jobs:
awk -F '\/' '{ print tolower($2) }' |
tr '_' '-'
) >> $GITHUB_OUTPUT
- name: Set up Python 3.x
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.11'
- name: Versions
run: |
python3 --version

25
.github/workflows/release-drafter.yml vendored Normal file
View file

@ -0,0 +1,25 @@
# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams, written for Adafruit Industries
#
# SPDX-License-Identifier: MIT
name: Release Drafter
on:
push:
branches:
- main
permissions:
contents: read
jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -21,7 +21,7 @@ jobs:
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.11'
- name: Install dependencies
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
run: |