Melika Kheirieh commited on
Commit
21bb5b5
·
1 Parent(s): d233a51

Add some dependency

Browse files
Files changed (2) hide show
  1. .github/workflows/ci.yml +6 -4
  2. requirements.txt +1 -0
.github/workflows/ci.yml CHANGED
@@ -21,20 +21,22 @@ jobs:
21
  uses: actions/setup-python@v5
22
  with:
23
  python-version: "3.12"
 
24
 
25
  - name: Install dependencies
26
  run: |
27
  python -m pip install --upgrade pip
28
  pip install -r requirements.txt
 
29
 
30
  - name: Lint (ruff)
31
- run: ruff check .
32
 
33
  - name: Type check (mypy)
34
- run: mypy .
35
 
36
  - name: Run tests
37
- run: pytest -q
38
 
39
  docker-build:
40
  needs: build-test
@@ -42,7 +44,7 @@ jobs:
42
  if: ${{ github.ref == 'refs/heads/main' }}
43
  permissions:
44
  contents: read
45
- packages: write # ← برای ghcr لازم است
46
 
47
  env:
48
  REGISTRY: ghcr.io
 
21
  uses: actions/setup-python@v5
22
  with:
23
  python-version: "3.12"
24
+ cache: "pip"
25
 
26
  - name: Install dependencies
27
  run: |
28
  python -m pip install --upgrade pip
29
  pip install -r requirements.txt
30
+ python -m pip install ruff mypy pytest
31
 
32
  - name: Lint (ruff)
33
+ run: python -m ruff check .
34
 
35
  - name: Type check (mypy)
36
+ run: python -m mypy .
37
 
38
  - name: Run tests
39
+ run: python -m pytest -q
40
 
41
  docker-build:
42
  needs: build-test
 
44
  if: ${{ github.ref == 'refs/heads/main' }}
45
  permissions:
46
  contents: read
47
+ packages: write
48
 
49
  env:
50
  REGISTRY: ghcr.io
requirements.txt CHANGED
@@ -9,3 +9,4 @@ pytest==8.3.3
9
  python-dotenv==1.1.1
10
  openai==2.6.1
11
  psycopg[binary]~=3.2
 
 
9
  python-dotenv==1.1.1
10
  openai==2.6.1
11
  psycopg[binary]~=3.2
12
+ ruff