File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 6
6
deploy :
7
7
name : Deploy
8
8
runs-on : ubuntu-latest
9
- env :
10
- RUN_TESTS : ' false' # Set this to 'true' to run the tests, or 'false' to skip them
11
-
12
- if : ${{ env.RUN_TESTS != 'false' }} # This condition will skip the job if RUN_TESTS is set to 'false'
13
9
14
10
steps :
11
+ - name : Set environment variable
12
+ run : echo "RUN_TESTS=false" >> $GITHUB_ENV # Adjust this to 'true' or 'false'
13
+
15
14
- name : Checkout
15
+ if : env.RUN_TESTS != 'false'
16
16
uses : actions/checkout@v3
17
17
with :
18
18
submodules : recursive
19
19
20
20
- name : setup python
21
+ if : env.RUN_TESTS != 'false'
21
22
uses : actions/setup-python@v4
22
23
with :
23
24
python-version : ' 3.9'
24
25
25
26
- name : install packages
27
+ if : env.RUN_TESTS != 'false'
26
28
run : |
27
29
sudo apt-get update
28
30
sudo apt-get -y install python3-pip jshon jq virtualenv pkg-config openssl libssl-dev autoconf libtool libsecp256k1-dev
29
31
pip3 install -r requirements.txt
30
32
pip3 install -r requirements-dev.txt
31
33
32
34
- name : Run tests
35
+ if : env.RUN_TESTS != 'false'
33
36
run : ./test.sh
You can’t perform that action at this time.
0 commit comments