Infra updates #127
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Run tests | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set environment variable | |
run: echo "RUN_TESTS=false" >> $GITHUB_ENV # Adjust this to 'true' or 'false' | |
- name: Checkout | |
if: env.RUN_TESTS != 'false' | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: setup python | |
if: env.RUN_TESTS != 'false' | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: install packages | |
if: env.RUN_TESTS != 'false' | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install python3-pip jshon jq virtualenv pkg-config openssl libssl-dev autoconf libtool libsecp256k1-dev | |
pip3 install -r requirements.txt | |
pip3 install -r requirements-dev.txt | |
- name: Run tests | |
if: env.RUN_TESTS != 'false' | |
run: ./test.sh |