-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 1006 Bytes
/
test.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
43
44
45
46
47
48
49
name: tests
on: [pull_request, push]
env:
FORCE_COLOR: 1
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python_version: ['3.x']
node_version: ['lts/*']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
architecture: 'x64'
- name: Install Flake8
run: |
pip install flake8
working-directory: ytdlp-server
- name: Run Flake8
run: |
flake8 . --max-line-length=120
working-directory: ytdlp-server
- name: Install Protoc using apt-get
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Verify protoc installation
run: protoc --version
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- run: npm i
- run: npm test