Skip to content
Merged
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
53 changes: 53 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/test_install_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down