Gitea Actions with Python

name: Django CI

on:
  push:
    branches: ["dev"]

jobs:
  ProjectTest:
    runs-on: ubuntu-latest
    container: catthehacker/ubuntu:act-latest
    steps:
      - uses: actions/checkout@v3
      - name: Set up Python 3.10
        uses: actions/setup-python@v3
        with:
          python-version: "3.10.12"

As shown above, add container: catthehacker/ubuntu:act-latest and try again. This works for me.