From 422eeac211e1a482a88e9cfab7c74e9e0eb4a24c Mon Sep 17 00:00:00 2001 From: Stephen Leitnick Date: Mon, 9 Dec 2024 19:23:11 -0500 Subject: [PATCH] Restructure --- .github/workflows/ci.yaml | 22 +++++++++++----------- build_tests.py | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 68525303..9b1c12b7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,6 +47,17 @@ jobs: - name: Install Aftman uses: ok-nick/setup-aftman@v0.4.2 + - name: Install Python + uses: actions/setup-python@v5 + with: + python-version: "3.13" + + - name: Install Python dependencies + run: pip install -r requirements.txt + + - name: Run test builder + run: python build_tests.py + - name: Build place file run: rojo build -o test.rbxl test.project.json @@ -58,17 +69,6 @@ jobs: API_KEY: ${{ secrets.RBXCLOUD_API_KEY }} FILE: test.rbxl run: rbxcloud experience publish -a "$API_KEY" -u "$UID" -p "$PID" -t published -f "$FILE" - - - name: Install Python - uses: actions/setup-python@v5 - with: - python-version: "3.13" - - - name: Install Python dependencies - run: pip install -r requirements.txt - - - name: Run test builder - run: python build_tests.py - name: Run tests env: diff --git a/build_tests.py b/build_tests.py index afdbbae2..77f79e4d 100644 --- a/build_tests.py +++ b/build_tests.py @@ -24,7 +24,7 @@ def update_test_file(test_path, original_src_path): class WatchHandler(PatternMatchingEventHandler): def __init__(self): - PatternMatchingEventHandler.__init__(self, patterns=["*.lua"], ignore_directories=True, case_sensitive=False) + PatternMatchingEventHandler.__init__(self, patterns=["*.luau"], ignore_directories=True, case_sensitive=False) def on_modified(self, event): original_src_path = event.src_path if original_src_path in files_locked: