Skip to content

Commit

Permalink
chore: update published build to python 3.11 (#3385)
Browse files Browse the repository at this point in the history
and also update the rest of the CI to use 3.11. two reasons for doing
this, even though 3.11 is a relatively new release:
- python 3.11 is about 10% faster based on local benchmarks
- universal2 images for darwin (on github actions) are only available
  for python builds starting with 3.11. cf.
  actions/setup-python#439 (comment)
  • Loading branch information
charles-cooper authored May 7, 2023
1 parent cf00f41 commit 895fbf2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
fetch-depth: 0

- name: Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: Generate Binary
run: >-
Expand All @@ -42,7 +42,7 @@ jobs:
make freeze
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: dist/vyper.*

Expand All @@ -58,9 +58,9 @@ jobs:
fetch-depth: 0

- name: Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: Generate Binary
run: >-
Expand All @@ -69,6 +69,6 @@ jobs:
./make.cmd freeze
- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: dist/vyper.*
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v2

- name: Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'

Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Set up Python 3.10
uses: actions/setup-python@v1
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: Install Dependencies
run: pip install .[lint]
Expand All @@ -42,10 +42,10 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Set up Python 3.10
uses: actions/setup-python@v1
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: Install Tox
run: pip install tox
Expand All @@ -59,10 +59,10 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Set up Python 3.10
uses: actions/setup-python@v1
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: Install Tox
run: pip install tox
Expand All @@ -75,7 +75,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [["3.10", "310", ["3.11", "311"]]]
python-version: [["3.10", "310"], ["3.11", "311"]]
# run in default (optimized) and --no-optimize mode
flag: ["core", "no-opt"]

Expand Down Expand Up @@ -126,10 +126,10 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Set up Python 3.10
uses: actions/setup-python@v1
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: Install Tox
run: pip install tox
Expand Down Expand Up @@ -167,10 +167,10 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Set up Python 3.10
uses: actions/setup-python@v1
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: Install Tox
run: pip install tox
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim
FROM python:3.11-slim

# Specify label-schema specific arguments and labels.
ARG BUILD_DATE
Expand Down

0 comments on commit 895fbf2

Please sign in to comment.