testing python script issues

This commit is contained in:
ssrlive 2024-09-26 11:02:33 +08:00
parent 6c8ae7a33f
commit b24d48a042
2 changed files with 21 additions and 7 deletions

View file

@ -24,10 +24,24 @@ jobs:
env:
DOTENV: ${{ secrets.DOTENV }}
run: echo "$DOTENV" > .env
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Create virtual environment
run: python -m venv venv
- name: Activate virtual environment and install dependencies
run: |
source venv/bin/activate
pip install -r tests/requirements.txt
- name: Build project
run: cargo build --release
- name: Run tests
run: >-
pwd;
ls -la;
sudo python -m pip install -r tests/requirements.txt;
cargo build --release;
sudo python tests/tests.py
run: |
source venv/bin/activate
python tests/tests.py