diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7b6fe43..b1f0a89 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,35 +1,9 @@ name: CI -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] +on: [push, pull_request] jobs: test: runs-on: ubuntu-latest steps: - - name: Test - run: | - pip install --upgrade pip - pip install pytest - pip install -r /app/requirements.txt - pytest /app/tests/ -v - - lint: - runs-on: ubuntu-latest - steps: - - name: Lint - run: | - pip install ruff - ruff check /app/ - - build: - runs-on: ubuntu-latest - needs: test - steps: - - name: Build - run: | - pip install -r /app/requirements.txt - python -c "from man_card import cli, man_parser, card_generator, templates, config; print('All modules import successfully')" + - run: pip install pytest && pip install -r requirements.txt && pytest tests/ -v