ci adjustments
This commit is contained in:
9
.github/workflows/ci.yaml
vendored
9
.github/workflows/ci.yaml
vendored
@@ -80,6 +80,12 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.12', '3.13', '3.14']
|
python-version: ['3.12', '3.13', '3.14']
|
||||||
|
services:
|
||||||
|
hat-syslog:
|
||||||
|
image: bozokopic/hat-syslog
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:6514:6514/tcp
|
||||||
|
- 127.0.0.1:6514:6514/udp
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- name: Install Python ${{ matrix.python-version }}
|
- name: Install Python ${{ matrix.python-version }}
|
||||||
@@ -151,6 +157,7 @@ jobs:
|
|||||||
--output-format github \
|
--output-format github \
|
||||||
--ignore "${ignore_csv_list}"
|
--ignore "${ignore_csv_list}"
|
||||||
- name: Run Django tests
|
- name: Run Django tests
|
||||||
|
timeout-minutes: 5
|
||||||
run: cd tubesync && TUBESYNC_DEBUG=True python3 -B -W default manage.py test --no-input --buffer --verbosity=2
|
run: cd tubesync && TUBESYNC_DEBUG=True python3 -B -W default manage.py test --no-input --buffer --verbosity=2
|
||||||
|
|
||||||
containerise:
|
containerise:
|
||||||
@@ -188,7 +195,7 @@ jobs:
|
|||||||
'ghcr.io/${{ needs.info.outputs.lowercase-github-repository_owner }}/${{ env.IMAGE_NAME }}:dive' \
|
'ghcr.io/${{ needs.info.outputs.lowercase-github-repository_owner }}/${{ env.IMAGE_NAME }}:dive' \
|
||||||
--ci \
|
--ci \
|
||||||
--highestUserWastedPercent '0.08' \
|
--highestUserWastedPercent '0.08' \
|
||||||
--highestWastedBytes '50M'
|
--highestWastedBytes '60M'
|
||||||
|
|
||||||
docker-image:
|
docker-image:
|
||||||
if: ${{ !cancelled() && 'success' == needs.info.result && 'success' == needs.containerise.result }}
|
if: ${{ !cancelled() && 'success' == needs.info.result && 'success' == needs.containerise.result }}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ ENV DEBIAN_FRONTEND="noninteractive" \
|
|||||||
PIP_NO_COMPILE=1 \
|
PIP_NO_COMPILE=1 \
|
||||||
PIP_ROOT_USER_ACTION='ignore'
|
PIP_ROOT_USER_ACTION='ignore'
|
||||||
|
|
||||||
COPY --from=tubesync-etc /etc/debconf.conf /etc/debconf.conf
|
#COPY --from=tubesync-etc /etc/debconf.conf /etc/debconf.conf
|
||||||
|
|
||||||
RUN --mount=type=cache,id=apt-lib-cache-${TARGETARCH},sharing=private,target=/var/lib/apt \
|
RUN --mount=type=cache,id=apt-lib-cache-${TARGETARCH},sharing=private,target=/var/lib/apt \
|
||||||
--mount=type=cache,id=apt-cache-cache,sharing=private,target=/var/cache/apt \
|
--mount=type=cache,id=apt-cache-cache,sharing=private,target=/var/cache/apt \
|
||||||
|
|||||||
Reference in New Issue
Block a user