Add .gitea/workflows/*.yaml

This commit is contained in:
2025-10-19 10:03:24 -07:00
parent 2843d7c765
commit f2591496ab
2 changed files with 10 additions and 11 deletions

View File

@@ -21,14 +21,14 @@ on:
jobs:
lint:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install Python 3.10.12
- name: Install Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10.12'
python-version: '3.10'
- name: Install tox
run: pip install tox
- name: Run lint
@@ -37,14 +37,14 @@ jobs:
tox -e lint
unit-test:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install Python 3.10.12
- name: Install Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10.12'
python-version: '3.10'
- name: Install tox
run: pip install tox
- name: Run unit tests
@@ -53,7 +53,7 @@ jobs:
tox -e unit
build-image:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [lint, unit-test] # Specify that build-image depends on lint and unit-test
steps:
- name: Checkout source code
@@ -74,7 +74,7 @@ jobs:
retention-days: 1
integration-tests:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [build-image]
steps:
- name: Download artifact
@@ -93,7 +93,7 @@ jobs:
docker container stop ${{ inputs.container-name }}
vulnerability-scan:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [build-image]
steps:
- name: Download artifact
@@ -124,7 +124,7 @@ jobs:
retention-days: 1
publish-image:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [integration-tests, vulnerability-scan]
steps:
- name: Download artifact

View File

@@ -53,4 +53,3 @@ jobs:
echo "Remove image: "
docker rmi gitea.cuihang1201.synology.me/hangpersonal/docker-build:latest
docker image ls -a