Skip to content
name: Test CLI Docker Image
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build the package
run: |
cd CLI
python -m build --outdir dist
- name: Verify dist directory contents
run: |
if [ -z "$(ls -A dist)" ]; then
echo "Error: dist directory is empty."
exit 1
else
echo "dist directory contains:"
ls -R dist
fi