Skip to content

Commit 8effcaa

Browse files
committed
chore: Add linting with Ruff and tests to CI
1 parent 949c4f8 commit 8effcaa

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

Diff for: .github/workflows/forum.yml

+9-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Forum CI/CD
1+
name: Forum CI
22

33
on:
44
push:
@@ -20,26 +20,16 @@ jobs:
2020
uses: actions/setup-python@v3
2121
with:
2222
python-version: ${{ matrix.python-version }}
23+
2324
- name: Install Dependencies
2425
run: |
2526
python -m pip install --upgrade pip
2627
pip install -r requirements.txt
27-
# - name: Run Tests
28-
# run: |
29-
# coverage run -m pytest
3028
31-
- name: Deploy to digital ocean
32-
uses: appleboy/ssh-action@master
33-
with:
34-
host: "161.35.20.217"
35-
username: "root"
36-
port: 22
37-
key: ${{ secrets.DO_PRIVATE_KEY}}
38-
script: |
39-
cd forum-backend/
40-
git pull origin master
41-
docker stop forum-backend-container || true
42-
docker rm forum-backend-container || true
43-
docker system prune -af
44-
docker build -t forum-backend:v0 .
45-
docker run -d --name forum-backend-container --env-file .env -p 80:8000 forum-backend:v0
29+
- name: Linting with Ruff
30+
run: |
31+
ruff check --fix
32+
33+
- name: Run Tests
34+
run: |
35+
coverage run -m pytest

0 commit comments

Comments
 (0)