Fix CI Python setup with an explicit Ubuntu job image
This commit is contained in:
1 parent
b236611044
commit
73d5112afe
2 files changed
+7
-4
No files matched your search
@@ -14,6 +14,9 @@ jobs:
|
||||
name: Unit tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
# Runner labels do not guarantee the job's OS or installed tools in Gitea.
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:act-24.04
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
@@ -21,10 +24,8 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Set up Python
|
||||
uses: https://github.com/actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- name: Show Python version
|
||||
run: python3 --version
|
||||
|
||||
- name: Run unit tests
|
||||
run: python3 -m unittest discover -s tests -v
|
||||
Reference in new issue
Block a user