Eslonf commited on
Commit
8521a92
·
1 Parent(s): ac41c7a

ci: Add GitHub Actions workflow for automated testing

Browse files
Files changed (1) hide show
  1. .github/workflows/ci.yml +33 -0
.github/workflows/ci.yml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Run Python Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ # Шаг 1: Скачать код из нашего репозитория
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v4
17
+
18
+ # Шаг 2: Настроить окружение Python нужной версии
19
+ - name: Set up Python 3.12
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: '3.12'
23
+
24
+ # Шаг 3: Установить все зависимости из requirements.txt
25
+ - name: Install dependencies
26
+ run: |
27
+ python -m pip install --upgrade pip
28
+ pip install -r requirements.txt
29
+
30
+ # Шаг 4: Запустить тесты!
31
+ - name: Run tests
32
+ run: |
33
+ pytest