Skip to content

chore(packaging): English-only CUDA setup messages (setup-cuda-venv.s… #641

chore(packaging): English-only CUDA setup messages (setup-cuda-venv.s…

chore(packaging): English-only CUDA setup messages (setup-cuda-venv.s… #641

Workflow file for this run

name: Rust
on:
push:
branches: [ "master", "release/*" ]
tags:
- 'v*'
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Bash syntax check
run: |
for f in dictee dictee-switch-backend dictee-test-rules; do
echo "Checking $f..."
bash -n "$f"
done
- name: Python syntax check
run: |
for f in dictee-setup.py dictee-tray.py dictee-ptt.py dictee-postprocess.py dictee-transcribe.py dictee_models.py; do
echo "Checking $f..."
python3 -m py_compile "$f"
done
- name: Gettext locale check
run: |
sudo apt-get install -y gettext > /dev/null
for f in po/*.po; do
echo "Checking $f..."
msgfmt --check --output=/dev/null "$f"
done
test-postprocess:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Python test deps
run: python3 -m pip install --user text2num
- name: Run postprocess tests
run: python3 tests/test-postprocess.py -v
env:
XDG_CONFIG_HOME: /tmp/dictee-ci-noconfig
test-apply-continuation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Run apply_continuation tests
run: bash tests/test-apply-continuation.sh
test-transcribe-routing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Run dictee-transcribe routing tests
run: python3 tests/test-transcribe-routing.py -v
packaging-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install PyYAML
run: python3 -m pip install --user pyyaml
- name: Audit packaging deps manifest vs builders
run: python3 packaging/audit-deps.py
test-x86:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
test-arm64:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v5
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
release:
needs: [lint, test-postprocess, test-apply-continuation, test-transcribe-routing, packaging-audit, test-x86, test-arm64]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Create Release
uses: softprops/action-gh-release@v3
with:
generate_release_notes: true
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}