@@ -12,15 +12,16 @@ jobs:
1212 runs-on : ubuntu-latest
1313 steps :
1414 - name : Checkout source code
15- uses : actions/checkout@v3
15+ uses : actions/checkout@v6
1616 - name : Set up Python
17- uses : actions/setup-python@v4
17+ uses : actions/setup-python@v6
1818 with :
1919 python-version : " 3.13"
20+ cache : ' pip'
2021 - name : Set up Go
21- uses : actions/setup-go@v4
22+ uses : actions/setup-go@v6
2223 with :
23- go-version : " 1.21 "
24+ go-version : " 1.26 "
2425 - name : Install dependencies
2526 run : python -m pip install tox
2627 - name : Run tox
3233 matrix :
3334 # NOTE: If you add a version here, don't forget to update the
3435 # '[gh-actions]' section in tox.ini
35- python : ["3.9", "3.10", "3. 11", "3.12", "3.13 "]
36+ python : ["3.11", "3.14 "]
3637 db : [postgres, mysql, sqlite3]
3738 env :
3839 DATABASE_TYPE : " ${{ matrix.db }}"
4344 MYSQL_ROOT_PASSWORD : root-${{ github.run_id }}
4445 services :
4546 postgres :
46- image : postgres:latest
47+ image : postgres:17
4748 env :
4849 POSTGRES_DB : ${{ env.DATABASE_NAME }}
4950 POSTGRES_PASSWORD : ${{ env.DATABASE_PASSWORD }}
5657 --health-timeout 5s
5758 --health-retries 5
5859 mysql :
59- image : mysql:latest
60+ image : mysql:8.4
6061 env :
6162 MYSQL_DATABASE : ${{ env.DATABASE_NAME }}
6263 MYSQL_USER : ${{ env.DATABASE_USER }}
7172 --health-retries 5
7273 steps :
7374 - name : Checkout source code
74- uses : actions/checkout@v3
75+ uses : actions/checkout@v6
7576 - name : Set up Python ${{ matrix.python }}
76- uses : actions/setup-python@v4
77+ uses : actions/setup-python@v6
7778 with :
7879 python-version : ${{ matrix.python }}
7980 - name : Install Python dependencies
@@ -102,19 +103,22 @@ jobs:
102103 runs-on : ubuntu-latest
103104 steps :
104105 - name : Checkout source code
105- uses : actions/checkout@v3
106+ uses : actions/checkout@v6
106107 with :
107108 fetch-depth : 0
109+ - name : Fetch all branches
110+ run : git fetch --all
108111 - name : Set up Python
109- uses : actions/setup-python@v4
112+ uses : actions/setup-python@v6
110113 with :
111114 python-version : " 3.13"
115+ cache : ' pip'
112116 - name : Install dependencies
113117 run : python -m pip install tox
114118 - name : Build docs (via tox)
115119 run : tox -e docs
116120 - name : Archive build results
117- uses : actions/upload-artifact@v3
121+ uses : actions/upload-artifact@v7
118122 with :
119123 name : html-docs-build
120124 path : docs/_build/html
@@ -129,13 +133,14 @@ jobs:
129133 COMPOSE_FILE : ${{ matrix.db == 'mysql' && 'docker-compose.yml' || (matrix.db == 'postgres' && 'docker-compose-pg.yml') || 'docker-compose-sqlite3.yml' }}
130134 steps :
131135 - name : Checkout source code
132- uses : actions/checkout@v3
136+ uses : actions/checkout@v6
133137 with :
134138 fetch-depth : 0
135139 - name : Set up Python
136- uses : actions/setup-python@v4
140+ uses : actions/setup-python@v6
137141 with :
138142 python-version : " 3.13"
143+ cache : ' pip'
139144 - name : Build docker-compose service
140145 run : |
141146 docker compose build --build-arg UID=$(id -u) --build-arg GID=$(id -g)
@@ -147,7 +152,7 @@ jobs:
147152 { echo patchwork; echo patchwork; } | \
148153 docker compose run -T --rm web \
149154 python manage.py changepassword patchwork
150- # FIXME(stephenfin): Re-enable this once dbbackup supports Django 4.0
155+ # FIXME(stephenfin): Re-enable this once we've update configuration accordingly
151156 # - name: Test dbbackup/dbrestore
152157 # run: |
153158 # docker compose run -T --rm web python manage.py dbbackup
0 commit comments