docs: Enhance SEO with improved README, metadata files, and troublesh… #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SCCharacters CI | |
| on: | |
| push: | |
| branches: [ "main", "master" ] | |
| pull_request: | |
| branches: [ "main", "master" ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| pip install pytest pytest-qt flake8 mypy | |
| # Instalar librerías de sistema necesarias para Qt (headless) | |
| - name: Install Qt system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y xvfb libegl1 libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils libx11-xcb1 libxcb1 libx11-6 libgl1 libxcb-cursor0 libxcb-shape0 | |
| - name: Lint with flake8 | |
| run: | | |
| # stop the build if there are Python syntax errors or undefined names | |
| flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics | |
| # exit-zero treats all errors as warnings. | |
| flake8 src --count --exit-zero --max-complexity=15 --max-line-length=127 --statistics | |
| - name: Run Tests | |
| # Usamos xvfb para simular un display para los tests de UI si son necesarios | |
| run: | | |
| xvfb-run -a pytest tests/ |