diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ed80b29..5f44601 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,15 +27,11 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up latest Python - uses: actions/setup-python@v4 + - uses: getsentry/action-setup-venv@v2.1.0 with: python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install . pytest + cache-dependency-path: pyproject.toml + install-cmd: pip install . pytest - uses: jakebailey/pyright-action@v1 @@ -50,10 +46,11 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + + - uses: getsentry/action-setup-venv@v2.1.0 with: python-version: ${{ matrix.python-version }} - cache: pip cache-dependency-path: pyproject.toml - - run: pip install -e . pytest + install-cmd: pip install -e . pytest + - run: pytest tests/