Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an explicit test of the command line usage #256

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/basic-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,3 +24,32 @@ jobs:
run: python -m pytest -s -v --cov=rocker -m "not nvidia"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
cli_smoke_tests:
name: CLI smoke tests
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
- name: Check detector help
run: |
detect_docker_image_os ubuntu -h
- name: Check main runs
run: |
rocker ubuntu 'true'
- name: Check rocker help
run: |
rocker -h