-
Notifications
You must be signed in to change notification settings - Fork 47
54 lines (42 loc) · 1.18 KB
/
pull_request.yml
File metadata and controls
54 lines (42 loc) · 1.18 KB
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: Run Tests
on:
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
test-js:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set Up Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Install NPM Dependencies
run: npm install
- name: Run JS Tests
run: npm test
test-python:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
architecture: 'x64'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
cd tools
ls -lah
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r certificate_automation/requirements.txt
- name: Run pytest
run: |
cd tools
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
pytest --ignore=_site --ignore=.venv --ignore=myenv