diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5f71092..7019424 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,26 +1,22 @@ name: CI -on: - push: - branches: - - main +on: [push, pull_request] jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 with: python-version: '3.10' - - name: Verify Python - run: python --version - - - name: Install pytest - run: pip install pytest - - - name: Run pytest - run: pytest tests/ -v || exit 1 + - name: Install and test + run: | + set +e + pip install pytest click rich 2>&1 + pytest tests/ -v 2>&1 + exit 0