mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-12 15:45:00 +00:00
![]() # Context: USER: make a windows workflow to run the tests, based on the existing python workflow ASSISTANT: To create a Windows workflow for running tests, we can use the existing Python workflow as a base. We will need to modify the `runs-on` field to specify a Windows environment, and adjust the commands for installing dependencies and running tests to be compatible with Windows. Here are the changes: ```yaml .github/workflows/windows-tests.yml <<<<<<< ORIGINAL ======= name: Windows Tests on: push: branches: - main pull_request: branches: - main jobs: build: runs-on: windows-latest strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - name: Check out repository uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Run tests run: | python -m unittest discover -s tests >>>>>>> UPDATED ``` This creates a new file `.github/workflows/windows-tests.yml` with the necessary configuration for running tests on a Windows environment. The Python version matrix, checkout, setup, and test steps are the same as in the original Python workflow. The command to install dependencies has been simplified, as the `universal-ctags` package is not required or available on Windows. |
||
---|---|---|
.. | ||
python-tests.yml | ||
release.yml | ||
windows-tests.yml |