Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
czoido committed Sep 27, 2024
1 parent 00cfa05 commit 5e41ae1
Showing 1 changed file with 13 additions and 25 deletions.
38 changes: 13 additions & 25 deletions .github/workflows/linux-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ jobs:
linux_docker_tests:
needs: build_container
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/conan-tests:latest
options: --user conan -v /var/run/docker.sock:/var/run/docker.sock
strategy:
matrix:
python-version: ['3.12.3']
Expand All @@ -127,30 +130,15 @@ jobs:
- name: Pull Docker image
run: docker pull ghcr.io/${{ github.repository_owner }}/conan-tests:latest

- name: Check Docker socket permissions inside container
- name: Install dependencies
run: |
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
ghcr.io/${{ github.repository_owner }}/conan-tests:latest \
bash -c "
ls -l /var/run/docker.sock
id
groups conan
getent group docker
"
- name: Run tests inside Docker container
pip install --upgrade pip
pip install -r conans/requirements.txt
pip install -r conans/requirements_dev.txt
pip install -r conans/requirements_server.txt
pip install meson
- name: Run tests
shell: bash
run: |
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
ghcr.io/${{ github.repository_owner }}/conan-tests:latest \
bash -c "
pyenv global ${{ matrix.python-version }} && \
python --version && \
pip install --upgrade pip && \
pip install -r conans/requirements.txt && \
pip install -r conans/requirements_dev.txt && \
pip install -r conans/requirements_server.txt && \
pip install meson && \
pytest -m docker_runner --durations=20 -rs
"
pytest -m docker_runner --durations=20 -rs

0 comments on commit 5e41ae1

Please sign in to comment.