diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..c2a0075 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,53 @@ +name: tests + +on: + pull_request: + push: + branches: + - main + +permissions: + contents: read + +jobs: + test: + name: ${{ matrix.os }} / Python 3.11 + runs-on: ${{ matrix.os }} + env: + PYTHONUTF8: "1" + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - windows-latest + + steps: + - name: Check out repository + uses: actions/checkout@v7 + + - name: Set up Python + uses: actions/setup-python@v7 + with: + python-version: "3.11" + cache: pip + + - name: Install ripgrep on Linux + if: runner.os == 'Linux' + run: sudo apt-get update && sudo apt-get install -y ripgrep + + - name: Install ripgrep on Windows + if: runner.os == 'Windows' + run: choco install ripgrep -y --no-progress + + - name: Install package + run: python -m pip install -e . + + - name: Compile + run: python -m compileall -q rightmemory tests + + - name: Run tests + env: + TEMP: ${{ runner.temp }} + TMP: ${{ runner.temp }} + run: python -m tests diff --git a/tests/test_install_windows.py b/tests/test_install_windows.py index b7e5ac1..ea20ebe 100644 --- a/tests/test_install_windows.py +++ b/tests/test_install_windows.py @@ -75,7 +75,7 @@ def test_windows_installer_installs_command_wrapper_and_skills(self): self.assertIn('set "PYTHONUTF8=1"', wrapper_text) self.assertIn('set "RIGHTMEMORY_ROOT=', wrapper_text) self.assertIn(str(memory_root), wrapper_text) - self.assertIn(' -m rightmemory.cli %*', wrapper_text) + self.assertIn(' -m rightmemory.entrypoint %*', wrapper_text) self.assertFalse(leaked_requirement_file) def test_windows_installer_bootstraps_both_modes_with_tracked_gitignore(self):