From 54d3f7d6c82d030c16ea1e975c2403145360a028 Mon Sep 17 00:00:00 2001 From: Niclas Haderer Date: Sun, 17 Mar 2024 11:33:59 +0100 Subject: [PATCH] Added tests before release --- .github/workflows/release.yml | 15 ++++++++++++++- {test => tests}/__init__.py | 0 {test => tests}/duck_vm.py | 0 {test => tests}/e2e.py | 0 4 files changed, 14 insertions(+), 1 deletion(-) rename {test => tests}/__init__.py (100%) rename {test => tests}/duck_vm.py (100%) rename {test => tests}/e2e.py (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a6791f..1605d32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Validate version id: validate @@ -24,6 +24,19 @@ jobs: fi echo "::set-output name=version::$VERSION" + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install dependencies + run: | + pip install poetry + poetry install + + - name: Run test + run: poetry run python tests/e2e.py + - name: Run compile script run: | ./compile.sh ${{ steps.validate.outputs.version }} diff --git a/test/__init__.py b/tests/__init__.py similarity index 100% rename from test/__init__.py rename to tests/__init__.py diff --git a/test/duck_vm.py b/tests/duck_vm.py similarity index 100% rename from test/duck_vm.py rename to tests/duck_vm.py diff --git a/test/e2e.py b/tests/e2e.py similarity index 100% rename from test/e2e.py rename to tests/e2e.py