Skip to content

Commit

Permalink
Update to ubuntu 22.04 with python3.10 (#21)
Browse files Browse the repository at this point in the history
* Update to ubuntu 22.04 with python3.10

* workflow: Remove no longer neccessary step

```
git checkout HEAD^2` is no longer necessary.
Please remove this step as Code Scanning recommends analyzing the merge commit for best results.
```

* workflows: Workaround for release-drafter

* Update command for tokens
  • Loading branch information
mkutlak authored Feb 17, 2024
1 parent 0282ed9 commit 079da27
Show file tree
Hide file tree
Showing 6 changed files with 330 additions and 220 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,23 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected]
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@65c74964a9ed8c44ed9f19d4bbc5757a6a8e9ab9 # [email protected]
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@65c74964a9ed8c44ed9f19d4bbc5757a6a8e9ab9 # [email protected]

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -51,4 +46,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@65c74964a9ed8c44ed9f19d4bbc5757a6a8e9ab9 # [email protected]
6 changes: 4 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@e5ccf147077e46b0225a80bbe314d795d77bb7a2
- name: Publish release
uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # [email protected]
with:
publish: ${{ github.ref == 'refs/heads/master' }}
commitish: master # workaround: https://github.com/release-drafter/release-drafter/issues/1125
publish: github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04 AS builder
FROM ubuntu:22.04 AS builder

RUN apt-get update && apt install -y python3-dev python3-pip
RUN pip3 install pipenv
Expand All @@ -9,7 +9,7 @@ ENV PIPENV_VENV_IN_PROJECT=1
RUN pipenv install

#####################################
FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt-get update \
&& apt-get -y dist-upgrade \
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ sentry-sdk = {version = "*", extras = ["flask"]}
pyyaml = "*"

[requires]
python_version = "3.8"
python_version = "3.10"
Loading

0 comments on commit 079da27

Please sign in to comment.