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
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ on:
jobs:
test:
runs-on: windows-latest
permissions:
contents: read
packages: read
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v4

Expand All @@ -27,12 +30,25 @@ jobs:
python -m pip install --upgrade pip
pip install -e ".[dev]"

- uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://npm.pkg.github.com'
scope: '@loupeteam'

- name: Install lpm
run: npm install -g @loupeteam/lpm@1.2.0
env:
NODE_AUTH_TOKEN: ${{ secrets.LPM_TOKEN }}

Comment on lines +39 to +43
- name: Lint (ruff)
run: ruff check aspython tests
continue-on-error: true

- name: Run tests
run: pytest -q
run: pytest -q -rs
env:
NODE_AUTH_TOKEN: ${{ secrets.LPM_TOKEN }}

build-exe:
needs: test
Expand Down
5 changes: 2 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ def pytest_configure(config):
sys.stderr.write('\nAsProject not found — generating via lpm...\n')

try:
_run_lpm('init', '--silent', cwd=AS_PROJECT)
_run_lpm('-s', 'init', cwd=AS_PROJECT)
for package in _LPM_PACKAGES:
sys.stderr.write(f' lpm install {package}\n')
_run_lpm('install', package, '--silent', cwd=AS_PROJECT)
# _run_lpm('install', '--silent', cwd=AS_PROJECT) # See comment above about plain "lpm install"
_run_lpm('-s', 'install', package, cwd=AS_PROJECT)
except FileNotFoundError:
sys.stderr.write(
'ERROR: lpm not found.\n'
Expand Down
Loading