diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9dde676..ffe63f8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,39 +10,58 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: https://github.com/actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v5 + uses: https://github.com/actions/setup-python@v5 with: python-version: '3.11' + - name: Cache pip packages + uses: https://github.com/actions/cache@v4 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install dependencies run: | pip install -e ".[dev]" - name: Run linting - run: ruff check src/ + run: | + ruff check src/ + + - name: Run type checking + run: | + mypy src/ - name: Run tests - run: pytest tests/ -v + run: | + pytest tests/ -v build: runs-on: ubuntu-latest needs: test steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: https://github.com/actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v5 + uses: https://github.com/actions/setup-python@v5 with: python-version: '3.11' - name: Install dependencies - run: pip install -e . + run: | + pip install -e . - name: Verify import - run: python -c "import memory_manager; print(memory_manager.__version__)" + run: | + python -c "import memory_manager; print(memory_manager.__version__)" - name: Verify CLI - run: memory --version + run: | + memory --version \ No newline at end of file