From 45f109ad67683c83147baebcbcfb3ec02908ee6d Mon Sep 17 00:00:00 2001 From: Tully Foote Date: Thu, 23 Nov 2023 18:28:14 -0800 Subject: [PATCH] add simple test of detect_docker_os To make sure things are working. --- .github/workflows/basic-ci.yaml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/basic-ci.yaml b/.github/workflows/basic-ci.yaml index 49db856f..ab0029dd 100644 --- a/.github/workflows/basic-ci.yaml +++ b/.github/workflows/basic-ci.yaml @@ -14,7 +14,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Install Dependencies And Self + - name: Install Test Dependencies And Self run: | python -m pip install --upgrade pip setuptools wheel python -m pip install -e .[test] codecov pytest-cov @@ -24,3 +24,22 @@ jobs: run: python -m pytest -s -v --cov=rocker -m "not nvidia" - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 + os_detector_cli: + name: OS Detector CLI + runs-on: ubuntu-22.04 + strategy: + matrix: + python-version: [3.8, '3.10'] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies And Self + run: | + python -m pip install --upgrade pip setuptools wheel + python -m pip install -e . + - name: Check os_detector script + run: | + detect_docker_image_os ubuntu