diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 0bad7bd..bff1c98 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -21,11 +21,19 @@ jobs: with: python-version: '3.10' + - name: Cache pip + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install black ruff pytest + pip install -r requirements-dev.txt - name: Run Black run: black --check . diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..e69b294 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,4 @@ +black +ruff +pytest +pytest-asyncio \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index faa29e9..1234fbf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,5 +15,3 @@ python-jose[cryptography] passlib[bcrypt] tiktoken httpx -pytest -pytest-asyncio