diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d0635a..184ed79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 }} + - 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 diff --git a/tests/conftest.py b/tests/conftest.py index 5c2544e..b12a7a6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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'