From 2dabe64dafede9f0a4f1da0fce6e785f3754e20e Mon Sep 17 00:00:00 2001 From: Jean Luca Bez Date: Thu, 12 Nov 2026 09:38:59 -0800 Subject: [PATCH] Fix CD database job on current GitHub runners Python 3.8 is no longer available on ubuntu-latest, which broke the database job on every push to main. Bump to 3.12 and move checkout and setup-python to the versions ci.yaml already runs, since actions/*@v2 target the deprecated Node 20. mysqlclient has no Linux wheel and compiles against libmysqlclient, which the 22.04 runner image preinstalled and 24.04 does not, so install pkg-config and default-libmysqlclient-dev before pip. This does not address the deploy job, which fails separately because the server rejects SSH password authentication. --- .github/workflows/main.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index dbf8dec2..28224cab 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -17,15 +17,17 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: '3.12' - name: Install dependencies run: | + sudo apt-get update + sudo apt-get install -y pkg-config default-libmysqlclient-dev pip install mysqlclient - name: Update database @@ -45,7 +47,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Runs a single command using the runners shell - name: Deploy to server