Skip to content
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
38410c1
ci: Cache
lahovniktadej Nov 10, 2025
0540747
ci: PATH
lahovniktadej Nov 10, 2025
daf306b
fix: Indentation
lahovniktadej Nov 10, 2025
8aa92b6
ci: $VENV
lahovniktadej Nov 11, 2025
2fd7ddb
ci: Operation sequence
lahovniktadej Nov 11, 2025
47edd40
ci: Manual PATH
lahovniktadej Nov 11, 2025
03afd01
fix: Redundant command
lahovniktadej Nov 11, 2025
6b30773
ci: Default shell
lahovniktadej Nov 11, 2025
dfc724e
ci: Windows PATH
lahovniktadej Nov 11, 2025
d0d5e95
ci: Cache
lahovniktadej Nov 11, 2025
3fba301
ci: venv cache
lahovniktadej Nov 12, 2025
7b5e22f
ci: poetry cache
lahovniktadej Nov 12, 2025
e417920
ci: Cache configuration
lahovniktadej Nov 12, 2025
8420124
ci: Cache key
lahovniktadej Nov 12, 2025
0b8cc42
ci: Cache path for cross-platform support
lahovniktadej Nov 12, 2025
072f6a7
ci: Cache path
lahovniktadej Nov 12, 2025
476ff6c
ci: Windows cache path
lahovniktadej Nov 12, 2025
56446d6
ci: Window path format
lahovniktadej Nov 12, 2025
c175a36
ci: Windows cache path format
lahovniktadej Nov 12, 2025
ac330ef
ci: $PATH
lahovniktadej Nov 12, 2025
75492e3
ci: Poetry PATH configuration for Windows
lahovniktadej Nov 12, 2025
fdd074a
ci: Poetry PATH
lahovniktadej Nov 12, 2025
490d0ad
ci: bash for poetry PATH on Windows
lahovniktadej Nov 12, 2025
1a1cf00
Initial plan
Copilot Nov 12, 2025
e2056b7
Fix venv cache path for Windows support
Copilot Nov 12, 2025
fc25034
Merge pull request #1 from lahovniktadej/copilot/fix-venv-cache-windows
lahovniktadej Nov 12, 2025
e79bdfd
ci: Virtual environment
lahovniktadej Nov 12, 2025
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
26 changes: 18 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,40 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.10', '3.11', '3.12', '3.13']
runs-on: ${{ matrix.os }}

defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry

- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v4
with:
path: ${{ runner.os == 'Windows' && 'C:\Users\runneradmin\.local' || runner.os == 'macOS' && '/Users/runner/.local' || '/home/runner/.local' }}
key: poetry-${{ matrix.python-version }}-${{ runner.os }}
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Check Poetry
- name: Add Poetry to PATH for bash (Windows)
if: runner.os == 'Windows'
shell: bash
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Configure poetry
if: steps.cached-poetry.outputs.cache-hit == 'true'
run: poetry config virtualenvs.in-project true
- name: Check Poetry version
run: poetry --version

- name: Install dependencies
run: poetry install --no-interaction --no-ansi

- name: Run tests
run: poetry run pytest -q