name: Main workflow on: push: branches: - main paths-ignore: - '**.md' pull_request: paths-ignore: - '**.md' jobs: run: name: Run runs-on: ${{ matrix.operating-system }} strategy: matrix: operating-system: [ubuntu-22.04, windows-latest] steps: - name: Checkout uses: actions/checkout@main - name: Set Node.js 18.x uses: actions/setup-node@main with: node-version: 18.x cache: npm - name: npm ci run: npm ci - name: Lint run: npm run format-check - name: npm test run: npm test - name: Run with setup-python 3.10 id: cp310 uses: ./ with: python-version: "3.10" - name: Verify 3.10 run: python __tests__/verify-python.py 3.10 - name: Run python-path sample 3.10 run: pipx run --python '${{ steps.cp310.outputs.python-path }}' nox --version