Skip to content

Commit

Permalink
update python to 3.11, update actions, add dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrashed committed Sep 26, 2023
1 parent dd5cc06 commit e79cfe3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "weekly"
reviewers:
- "alexrashed"
labels:
- "dependencies"
groups:
github-actions:
patterns:
- "*"
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ jobs:
cli_version: ${{ steps.cli_version.outputs.cli_version }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python (GitHub Runner)
if: ${{ !contains(matrix.runner, 'buildjet') }}
uses: actions/setup-python@v4
with:
python-version: '3.10.11'
python-version: '3.11.5'

- name: Setup Python (BuildJet Runner)
if: contains(matrix.runner, 'buildjet')
uses: gabrielfalcao/pyenv-action@v14
uses: gabrielfalcao/pyenv-action@v16
with:
default: '3.10.11'
default: '3.11.5'

- name: Create virtual environment
run: make venv
Expand Down
9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ You need Python developer version libraries in your path to be able to build the
For most of us who use pyenv, this is done with:
- MacOS:
```bash
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.10-dev
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.11-dev
```
- Linux:
```bash
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.10-dev
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.11-dev
```

Activate the version:
```
pyenv local 3.10-dev
pyenv local 3.11-dev
python --version
```
This should print something like `Python 3.10.11+`.
This should print something like `Python 3.11.5+`.

### Building
You can build the specific versions by calling the respective make target:
Expand Down

0 comments on commit e79cfe3

Please sign in to comment.