name: Auto Build

on: push

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Set up Python 3.7
        uses: actions/setup-python@v1
        with:
          python-version: 3.7
      - name: Install requirements
        run: pip install -r requirements.txt
      - name: Lint with pylint
        run: |
           pip install pylint
           pylint unicornclient/
      - name: Test with unittest
        run: python -m unittest
  build:
    if: github.ref == 'refs/heads/master'
    needs: check
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Build the Docker image
        run: docker build . --file Dockerfile --tag amm0nite/unicornclient:latest
      - name: Publish the Docker image
        run: |
          docker login --username amm0nite --password ${{secrets.docker_hub_token}}
          docker push amm0nite/unicornclient:latest

name: Auto Build

on: push

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: 3.9
      - name: Install requirements
        run: pip install -r requirements.txt
      - name: Lint with pylint
        run: |
           pip install pylint
           pylint unicornclient/
      - name: Test with unittest
        run: python -m unittest
  build:
    if: github.ref == 'refs/heads/master'
    needs: check
    runs-on: ubuntu-latest
    steps:
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1
      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      - name: Build and push
        id: docker_build
        uses: docker/build-push-action@v2
        with:
          push: true
          tags: amm0nite/unicornclient:latest
      - name: Image digest
        run: echo ${{ steps.docker_build.outputs.digest }}

Update CI to python 3.9
Update CI to python 3.9