Skip to content

Commit

Permalink
feat(workflows): add setup-docker-and-run-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
basarbyz committed Jul 25, 2024
1 parent 0e4714c commit 06e67ed
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/setup-docker-and-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,28 @@ jobs:
cd tests
cp .env.test.example .env
sed -i "s/localhost/$CONTAINER_IP/g" .env
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Set up virtual environment
run: |
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
- name: Install requirements
run: |
source venv/bin/activate
pip install -r tests/requirements.txt
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV

- name: Run tests
run: |
source venv/bin/activate
cd tests
pip install -r requirements.txt
python -m unittest test_crud.py

0 comments on commit 06e67ed

Please sign in to comment.