-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (44 loc) · 1.39 KB
/
on-pr-into-main.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
55
name: on-pr-into-main
env:
NVM_VERSION: 0.39.7
NODE_VERSION: 16.14.0
PYTHON_VERSION: 3.9
on:
pull_request:
branches:
- main
jobs:
run-pr-checks:
runs-on: ubuntu-24.04
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install a specific nvm version
run: |
rm -rf $NVM_DIR
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v${{ env.NVM_VERSION }}/install.sh | bash
cat ~/.bashrc | grep "NVM" > ~/.non-interactive
- name: Install a specific node version
run: |
source ~/.non-interactive
echo "NVM Version: $(nvm --version)"
nvm install ${{ env.NODE_VERSION }}
nvm use ${{ env.NODE_VERSION }}
nvm alias default ${{ env.NODE_VERSION }}
- name: Install and upgrade pre-requisites
run: |
python3.9 -m pip install --upgrade pip wheel setuptools
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y libssl-dev
- name: Bootstrap Python app and run tests
run: |
source ~/.non-interactive
export ENVIRONMENT='local'
set -eu
make bootstrap-for-tests
make test