Skip to content

Commit 53ea6af

Browse files
author
Walid Sobhi
committed
Add CI/CD workflow
1 parent 860ce12 commit 53ea6af

File tree

1 file changed

+9
-32
lines changed

1 file changed

+9
-32
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,13 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12-
1312
steps:
14-
- uses: actions/checkout@v4
15-
16-
- name: Set up Python
17-
uses: actions/setup-python@v5
18-
with:
19-
python-version: '3.10'
20-
21-
- name: Install dependencies
22-
run: |
23-
pip install -r requirements.txt
24-
25-
- name: Run tests
26-
run: |
27-
python3 -m pytest tests/ -v || python3 -m unittest discover tests/ || echo "No tests found"
28-
29-
- name: Lint check
30-
run: |
31-
pip install flake8
32-
flake8 --max-line-length=120 --ignore=E501,W503 . || true
33-
34-
docker:
35-
runs-on: ubuntu-latest
36-
37-
steps:
38-
- uses: actions/checkout@v4
39-
40-
- name: Build Docker image
41-
run: docker build -t app .
42-
43-
- name: Test Docker
44-
run: docker run --rm app python3 --version
13+
- uses: actions/checkout@v4
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.10'
18+
- name: Install dependencies
19+
run: pip install -r requirements.txt
20+
- name: Run tests
21+
run: python3 -m pytest tests/ -v || echo "No tests"

0 commit comments

Comments
 (0)