Skip to content

Commit

Permalink
GithubAction test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaBarbo committed Jul 17, 2024
1 parent e85079d commit e0f0656
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Quality_Assessment_&_Awarding_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
with:
name: unittests_pytest
tool: commands
commands: /app/script_dockerfile.sh test
container: mattiabarbo/prova:3.0
- name: SQAaaS assessment with unit testing (QC.Uni) step
uses: eosc-synergy/sqaaas-assessment-action@v2
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ RUN pip install -r requirements.txt
# Make the script_dockerfile.sh script executable and run it
COPY script_dockerfile.sh /app/script_dockerfile.sh
RUN chmod +x /app/script_dockerfile.sh
ENTRYPOINT ["/app/script_dockerfile.sh"]

# Default command to keep the container running
CMD ["tail", "-f", "/dev/null"]



4 changes: 3 additions & 1 deletion script_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,7 @@ for i in {1..15}; do
sleep 10
done

python3 -m pytest -v
if [[ "$1" == "test" ]]; then
python3 -m pytest -v
fi

0 comments on commit e0f0656

Please sign in to comment.