Skip to content

Commit d5e5578

Browse files
authored
Merge pull request #1807 from hashtopolis/hashtopolis-lib-extracted
Hashtopolis lib extracted
2 parents 019c501 + e449ac2 commit d5e5578

File tree

4 files changed

+7
-1067
lines changed

4 files changed

+7
-1067
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
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

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ RUN yes | pecl install xdebug && docker-php-ext-enable xdebug \
130130
RUN 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
137138
RUN groupadd vscode && useradd -rm -d /var/www -s /bin/bash -g vscode -G www-data -u 1001 vscode \

0 commit comments

Comments
 (0)