Skip to content

Commit

Permalink
chore: Pin Python version to 3.11 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah authored Oct 27, 2023
1 parent 55b8e4e commit e5498cb
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 27 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
python-version: "3.11"
- name: Install dependencies
run: pip install -r requirements.txt
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Check formatting
run: make fmt-check
46 changes: 23 additions & 23 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@ name: publish
on:
push:
tags:
- 'v*.*.*'
- "v*.*.*"

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install build
- name: Build package
run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install build
- name: Build package
run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
6 changes: 4 additions & 2 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
python-version: "3.11"
- name: Install dependencies
run: pip install -r requirements.txt
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: make test

0 comments on commit e5498cb

Please sign in to comment.