Skip to content

Commit

Permalink
test-3
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-sehgal committed Dec 23, 2024
1 parent 0f424f4 commit ff449c2
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,33 +153,33 @@ jobs:
- name: Run tests
run: poetry run xvfb-run --auto-servernum python manage.py test -v 3 --failfast

docker-test:
name: Run Tests (Docker)
needs: code-ql
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker
run: |
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
# Add Docker's official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# Set up the Docker stable repository
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Update apt package list and install Docker
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
- name: Build Docker image
run: |
docker build -t my-docker-image .
- name: Run tests inside Docker
run: |
docker run --rm my-docker-image poetry run python manage.py test -v 3 --failfast
docker-test:
name: Run Tests (Docker)
needs: code-ql
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker
run: |
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
# Add Docker's official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# Set up the Docker stable repository
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Update apt package list and install Docker
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
- name: Build Docker image
run: |
docker build -t my-docker-image .
- name: Run tests inside Docker
run: |
docker run --rm my-docker-image poetry run python manage.py test -v 3 --failfast

0 comments on commit ff449c2

Please sign in to comment.