mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-09-29 18:16:43 +00:00
66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
name: Offline i18n tests
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.github/scripts/**'
|
|
- '.github/workflows/test-i18n.yml'
|
|
- '.github/workflows/build-i18n-messages.yml'
|
|
- 'AppImage/messages/**'
|
|
- 'AppImage/lib/i18n/**'
|
|
- 'AppImage/components/terminal-panel.tsx'
|
|
- 'CONTRIBUTING.md'
|
|
# Scheduler consumers and the offline extractor's .sh/.func inputs.
|
|
- 'scripts/**/*.sh'
|
|
- 'scripts/**/*.func'
|
|
- 'lang/*.json'
|
|
- 'oci/src/**/*.py'
|
|
- 'oci/catalog/**/*.json'
|
|
- 'oci/remote/**/*.sh'
|
|
push:
|
|
branches: [main, develop]
|
|
paths:
|
|
- '.github/scripts/**'
|
|
- '.github/workflows/test-i18n.yml'
|
|
- '.github/workflows/build-i18n-messages.yml'
|
|
- 'AppImage/messages/**'
|
|
- 'AppImage/lib/i18n/**'
|
|
- 'AppImage/components/terminal-panel.tsx'
|
|
- 'CONTRIBUTING.md'
|
|
# Scheduler consumers and the offline extractor's .sh/.func inputs.
|
|
- 'scripts/**/*.sh'
|
|
- 'scripts/**/*.func'
|
|
- 'lang/*.json'
|
|
- 'oci/src/**/*.py'
|
|
- 'oci/catalog/**/*.json'
|
|
- 'oci/remote/**/*.sh'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
offline-i18n:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '22.14.0'
|
|
- name: Check scheduler test dependencies
|
|
run: |
|
|
test -x /bin/bash
|
|
test -x /usr/bin/jq
|
|
- name: Install OCI wording test dependency
|
|
run: python3 -m pip install 'PyYAML>=6,<7'
|
|
- name: Run complete offline script test suite
|
|
env:
|
|
PYTHONDONTWRITEBYTECODE: '1'
|
|
run: python3 -m unittest discover -s .github/scripts/tests -v
|