diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5024560..4afe23e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -9,11 +9,25 @@ on: jobs: test: runs-on: ubuntu-latest + defaults: + run: + working-directory: app steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + + - name: Set up Python + uses: actions/setup-python@v5 with: python-version: '3.11' - - run: pip install -e ".[dev]" - - run: pytest tests/ -v - - run: ruff check . + cache: 'pip' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e ".[dev]" + + - name: Run tests + run: pytest tests/ -v --tb=short + + - name: Check code formatting + run: ruff check env_pro/