generated from freeCodeCamp/template
-
-
Notifications
You must be signed in to change notification settings - Fork 13
54 lines (45 loc) · 1.23 KB
/
ci.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
50
51
52
53
54
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: psf/black@1b2427a2b785cc4aac97c19bb4b9a0de063f9547 # 24.10.0
tests:
name: "Node CI"
runs-on: ubuntu-latest
needs: lint
steps:
# Checkout the Repo
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
# Install Node 18
- name: Setup Node
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1
with:
node-version: 18
- name: Install Dependencies
run: npm ci
- name: Lint Files
run: npm run lint
- name: Verify Build
run: npm run build
- name: Run Tests
run: npm test
python-tests:
name: "Python CI"
runs-on: ubuntu-latest
steps:
# Checkout the Repo
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
# Install Python
- name: Setup Python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4
with:
python-version: 3.x
- name: Run Tests
run: python ./python/py_helpers.test.py