File tree Expand file tree Collapse file tree 4 files changed +7
-1067
lines changed
Expand file tree Collapse file tree 4 files changed +7
-1067
lines changed Original file line number Diff line number Diff line change 2828 - name : Give Apache permissions on necessary directories # for the tests, only src/files and src/inc/utils/locks seem necessary
2929 run : docker exec -u root hashtopolis-server-dev bash -c "chown -R www-data:www-data /var/www/html/src && chmod -R g+w /var/www/html/src"
3030 - name : Test with pytest
31- run : docker exec hashtopolis-server-dev pytest /var/www/html/ci/apiv2
31+ run : docker exec -w /var/www/html/ci/apiv2 hashtopolis-server-dev pytest
3232 - name : Test if pytest is removing all test objects
33- run : docker exec hashtopolis-server-dev python3 /var/www/html/ci/apiv2/ htcli.py run delete-test-data
33+ run : docker exec -w /var/www/html/ci/apiv2 hashtopolis-server-dev python3 htcli.py run delete-test-data
3434 - name : Show docker log files
3535 if : ${{ always() }}
3636 run : docker logs hashtopolis-server-dev
Original file line number Diff line number Diff line change @@ -130,8 +130,9 @@ RUN yes | pecl install xdebug && docker-php-ext-enable xdebug \
130130RUN apt-get update \
131131 && apt-get install -y python3 python3-pip python3-requests python3-pytest
132132
133- # TODO: Should source from ./ci/apiv2/requirements.txt
134- RUN pip3 install click click_log confidence pytest tuspy --break-system-packages
133+ # install dependencies from ./ci/apiv2/requirements.txt
134+ COPY ./ci/apiv2/requirements.txt /tmp/requirements.txt
135+ RUN pip3 install -r /tmp/requirements.txt --break-system-packages
135136
136137# Adding VSCode user and fixing permissions
137138RUN groupadd vscode && useradd -rm -d /var/www -s /bin/bash -g vscode -G www-data -u 1001 vscode \
You can’t perform that action at this time.
0 commit comments