Skip to content

Commit e882e64

Browse files
authored
Create main4.yml
1 parent 461a0de commit e882e64

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/main4.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: 'Lint Code'
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
pull_request:
7+
branches: [master, main]
8+
9+
jobs:
10+
lint_python:
11+
name: Lint Python Files
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
16+
- name: Checkout Repository
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: 3.12
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install flake8
28+
29+
- name: Print working directory
30+
run: pwd
31+
32+
lint_js:
33+
name: Lint JavaScript Files
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- name: Checkout Repository
38+
uses: actions/checkout@v3
39+
40+
- name: Install Node.js
41+
uses: actions/setup-node@v3
42+
with:
43+
node-version: 14
44+
45+
- name: Install JSHint
46+
run: npm install jshint --global

0 commit comments

Comments
 (0)