fix: Resolve CI failures by excluding vendor directory from linting and upgrading actions

This commit is contained in:
thePR0M3TH3AN committed 2026-03-13 16:39:30 -04:00
1 parent 4046e27e19
commit 67244b5351
3 files changed
+22 -9

No files matched your search

+4 -4
View File
@@ -9,16 +9,16 @@ jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -e .
- name: Lint
run: flake8 voxvera tests
run: flake8 voxvera tests --exclude=voxvera/vendor --ignore=E501,W503,W293
- name: Test
run: pytest tests/test_cli.py -v
+6 -1
View File
@@ -11,11 +11,16 @@ jobs:
env:
VOXVERA_E2E_OFFLINE: "1"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
pip install --break-system-packages .
- name: Run end-to-end tests
run: ci/test-e2e.sh
- name: Upload logs
+12 -4
View File
@@ -9,10 +9,10 @@ jobs:
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
- name: Install build tools
run: |
python -m pip install --upgrade pip
@@ -20,7 +20,15 @@ jobs:
- name: Build wheel
run: python -m build --wheel --sdist
- name: Build binary
run: pyinstaller --onefile -n voxvera voxvera/cli.py --add-data "voxvera/resources/tor/*:voxvera/resources/tor"
run: |
pyinstaller --onefile \
--add-data "voxvera/locales:voxvera/locales" \
--add-data "voxvera/src:voxvera/src" \
--add-data "voxvera/templates:voxvera/templates" \
--add-data "voxvera/resources:voxvera/resources" \
--add-data "requirements.txt:." \
--name voxvera \
voxvera/cli.py
- name: Create AppImage
run: |
sudo apt-get update