Skip to content
Closed
Show file tree
Hide file tree
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
39 changes: 39 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -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
Empty file added tests/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions tests/test_simple.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def test_sanity():
"""Basic sanity check"""
assert 1 + 1 == 2
Loading