-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.12 KB
/
code_quality.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Check code quality
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Requirements
run: |
pip install --upgrade pip
pip install -r dev-requirements.txt
pip install -r requirements.txt
- name: Run Flake8
run: flake8 --max-line-length 119 ./src
- name: Prepare TestBed
run: |
sudo apt-get update -y
sudo apt-get install -y libopus-dev
- name: Test Run
run: |
python src/main.py &
sleep 20
kill "$!"
env:
BOT_TOKEN: ${{ secrets.TEST_BOI_DC_TOKEN }}
SERVER_IP: ${{ secrets.SERVER_IP }}
SERVER_PORT: ${{ secrets.SERVER_PORT }}
SERVER_ENDPOINT: ${{ secrets.SERVER_ENDPOINT }}
WAVELINK_URL: ${{ secrets.WAVELINK_URL }}
WAVELINK_PORT: ${{ secrets.WAVELINK_PORT }}
WAVELINK_PASSWORD: ${{ secrets.WAVELINK_PASSWORD }}