diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 582a54b..3744af7 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -18,24 +18,17 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' - - - name: Cache pip packages - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + python-version: '3.10' - name: Install dependencies run: | python -m pip install --upgrade pip + pip install pytest pytest-cov pip install -r requirements.txt - name: Run tests run: | - pytest tests/ -v --cov=man_card --cov-report=term-missing + pytest tests/ -v lint: runs-on: ubuntu-latest @@ -46,15 +39,11 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' - - - name: Install linting tools - run: | - python -m pip install --upgrade pip - pip install ruff + python-version: '3.10' - name: Run linter run: | + pip install ruff ruff check . build: @@ -67,17 +56,9 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.10' - - name: Install dependencies + - name: Install and build run: | - python -m pip install --upgrade pip pip install -r requirements.txt - - - name: Verify build - run: | - python -c "from man_card import cli; print('CLI module imports successfully')" - python -c "from man_card import man_parser; print('man_parser module imports successfully')" - python -c "from man_card import card_generator; print('card_generator module imports successfully')" - python -c "from man_card import templates; print('templates module imports successfully')" - python -c "from man_card import config; print('config module imports successfully')" + python -c "from man_card import cli, man_parser, card_generator, templates, config; print('All modules import successfully')"