Add CI for rodman entrypoint #490
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Basic CI | |
on: [push, pull_request] | |
jobs: | |
basic_ci: | |
name: Basic CI | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: ['3.8', 3.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Test Dependencies And Self | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install -e .[test] codecov pytest-cov | |
- name: Run headless tests | |
uses: coactions/setup-xvfb@v1 | |
with: | |
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.x'] | |
executable_name: [rocker, rodman] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Check main runs | |
run: | | |
${{ matrix.executable_name }} ubuntu 'true' | |
- name: Check rocker help | |
run: | | |
${{ matrix.executable_name }} -h | |
test_helper_functions: | |
name: Test Helper Functions | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: [3.8, '3.x'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
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 |