@@ -21,17 +21,17 @@ jobs:
2121 fail-fast : false
2222 matrix :
2323 os : [ubuntu-latest, windows-latest, macos-latest]
24- python-version : [3.7, 3.8 ]
24+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12" ]
2525 steps :
26- - uses : actions/checkout@v2
26+ - uses : actions/checkout@v4
2727 with :
2828 fetch-depth : 0
2929 - name : Set up Python ${{ matrix.python-version }}
30- uses : actions/setup-python@v2
30+ uses : actions/setup-python@v5
3131 with :
3232 python-version : ${{ matrix.python-version }}
3333 - name : Cache pip
34- uses : actions/cache@v2
34+ uses : actions/cache@v4
3535 with :
3636 path : ~/.cache/pip
3737 key : ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}
4141 - name : Install dependencies
4242 run : |
4343 if [ "$RUNNER_OS" == "Linux" ]; then
44- sudo apt-get -y install libncurses5 -dev libncursesw5-dev libncurses5
44+ sudo apt-get update && sudo apt-get -y install libncurses -dev
4545 fi
4646 python -m pip install --upgrade pip
4747 pip install -r requirements-dev.txt
7373 uses : docker/login-action@v2
7474 with :
7575 registry : ghcr.io
76- username : ${{ secrets.GHCR_USER }}
76+ username : ${{ github.actor }}
7777 password : ${{ secrets.GITHUB_TOKEN }}
7878
7979 - name : Extract metadata (tags, labels) for Docker
8686 uses : docker/build-push-action@v4.0.0
8787 with :
8888 context : .
89- push : true
89+ push : ${{ github.event_name != 'pull_request' }}
9090 tags : ${{ steps.meta.outputs.tags }}
9191 labels : ${{ steps.meta.outputs.labels }}
9292
0 commit comments