Skip to content

Commit

Permalink
test: Fix automated tests in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
max-zhuk authored and MaximPlusov committed Jul 23, 2024
1 parent 144c7df commit 64b4ce7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/rest-api-tests-with-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,26 @@ jobs:
apt-get update -y
apt-get install python3 -y
apt-get install python3-pip -y
apt install -y python3-venv
echo install python3-venv -y
apt-get install python3-venv -y
echo python3 -m venv .venv
python3 -m venv .venv
source .venv/bin/activate
echo . .venv/bin/activate
. .venv/bin/activate
echo which python
which python
echo python3 -m pip install -r requirements.txt
python3 -m pip install -r requirements.txt
echo $(pip list)
echo pwd: $PWD
- name: Running rest-api tests ...
run: |
mkdir ./results
mkdir ./results
echo $(pip list)
echo dir: $(ls ./)
pytest --base_url=http://verarest:8080 --html=./results/report.html ./tests/
echo $(which python)
echo $(pytest --version)
pytest --base_url=http://verarest:8080 --html=./results/report.html ./tests/
echo $(ls ./results/)
- name: Generating report
uses: actions/upload-artifact@v1
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pydantic-core==2.10.1
pydantic-xml==2.4.0
pydentic==0.0.1.dev3
pytest==7.4.3
pytest-base-url==2.1.0
pytest-html==4.1.1
pytest-metadata==3.0.0
python-stdnum==1.19
Expand Down

0 comments on commit 64b4ce7

Please sign in to comment.