From ea5b7d31967afdd841615cafd0696672dfdd21e2 Mon Sep 17 00:00:00 2001 From: TheNetworkGuy Date: Mon, 14 Apr 2025 20:13:15 +0200 Subject: [PATCH] Added initial unittesting PoC to see if Docker and Python are working correctly --- .github/workflows/unittesting.yml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/unittesting.yml diff --git a/.github/workflows/unittesting.yml b/.github/workflows/unittesting.yml new file mode 100644 index 0000000..d4a2ad1 --- /dev/null +++ b/.github/workflows/unittesting.yml @@ -0,0 +1,37 @@ +--- +name: Unit testing and functional code control +on: + push: + branches: + - 'main' + - 'develop' + - 'unittesting' + +jobs: + integration: + runs-on: ubuntu-latest + services: + docker: + image: docker:dind + options: --privileged --shm-size=2g + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + container: + image: ubuntu:latest + steps: + - uses: actions/checkout@v4 + + - name: Install Docker + run: | + apt-get update + apt-get install -y docker.io + + - name: Test Docker + run: | + docker version + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: 3.12 + - name: Show Python version + run: python --version \ No newline at end of file