Skip to content

Commit

Permalink
Bump python versions, update dependencies and update ubuntu image
Browse files Browse the repository at this point in the history
- Remove python 3.7 and add 3.9, 3.10, 3.11, and 3.12 to the supported versions.
- Update python dependencies to latest versions
- Update ubuntu image from ubuntu-18.04 to ubuntu-22.04 in GitHub Actions workflows.
  • Loading branch information
larose committed Jan 12, 2024
1 parent 8b84653 commit e4143d6
Show file tree
Hide file tree
Showing 19 changed files with 478 additions and 405 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:

jobs:
build-and-check:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.7", "3.8"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Setup python
Expand All @@ -30,7 +30,7 @@ jobs:
path: dist

publish:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: build-and-check
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:

jobs:
build-and-check:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.7", "3.8"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Setup python
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ test.unit:
test.integration: clean build
cp dist/utt-*-py3-none-any.whl $(INTEGRATION_DIR)

python -c 'import sys; print(f"FROM python:{sys.version_info.major}.{sys.version_info.minor}-buster")' > $(GENERATED_DOCKERFILE)
python -c 'import sys; print(f"FROM python:{sys.version_info.major}.{sys.version_info.minor}-slim-bullseye")' > $(GENERATED_DOCKERFILE)
cat $(TEMPLATE_DOCKERFILE) >> $(GENERATED_DOCKERFILE)
docker build --tag $(TEST_DOCKER_IMAGE) --file $(GENERATED_DOCKERFILE) $(INTEGRATION_DIR)
docker run --rm $(TEST_DOCKER_IMAGE) $(INTEGRATION_CMD)
Loading

0 comments on commit e4143d6

Please sign in to comment.