Skip to content

Commit

Permalink
Merge pull request #33 from ScholliYT/new-python-versions
Browse files Browse the repository at this point in the history
Allow newer python versions 3.8 to 3.11
  • Loading branch information
ScholliYT authored Jan 4, 2023
2 parents d5aa37f + ebb8855 commit dfa8dcc
Show file tree
Hide file tree
Showing 6 changed files with 174 additions and 167 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/python-lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ jobs:
lint-and-test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}
- name: Install Python Poetry
uses: abatilo/actions-poetry@v2
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/python-mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ jobs:
mutation-test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}
- name: Install Python Poetry
uses: abatilo/actions-poetry@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Container image that runs your code
FROM python:3.8-slim-buster
FROM python:3.11-slim-buster

RUN python3.8 -m pip install pipx
RUN python3.11 -m pip install pipx
RUN pipx install "poetry==1.2.2"
# We need to ensure taht poetry is available (alternative: RUN pipx ensurepath)
ENV PATH="{PATH}:/root/.local/bin"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ To install all the required dependencies, please
use the following command:

```sh
poetry env use python3.8 # in case your system python differs
poetry env use python3.11 # in case your system python differs from 3.8, 3.9, 3.10 or 3.11
poetry install # use '--without dev' to install only required dependencies
```

Expand Down
Loading

0 comments on commit dfa8dcc

Please sign in to comment.