diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 00000000..3152b47e --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,39 @@ +name: Test Vast CLI (PEP 621 + Poetry Backend) + +on: + push: + branches: [ master, main ] + pull_request: + branches: [ master, main ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install Poetry and plugin + run: | + pip install poetry==1.8.3 poetry-dynamic-versioning[plugin] build + + - name: Build wheel + run: | + python -m build + ls -l dist/ + + - name: Install built package + run: | + pip install dist/*.whl + pip install pytest + + - name: Run tests + run: pytest -v diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/test_simple.py b/tests/test_simple.py new file mode 100644 index 00000000..b5689a74 --- /dev/null +++ b/tests/test_simple.py @@ -0,0 +1,3 @@ +def test_sanity(): + """Basic sanity check""" + assert 1 + 1 == 2 \ No newline at end of file