Skip to content

chore(ci): allow checkouts from forks #38

chore(ci): allow checkouts from forks

chore(ci): allow checkouts from forks #38

Workflow file for this run

name: Tox
on:
pull_request:
paths:
- .github/**
- src/**
- pyproject.toml
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout branch
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.8.2
- name: Install dependencies
shell: bash
run: |
poetry config virtualenvs.in-project true && \
poetry install --with dev
- name: Tox run
shell: bash
run: poetry run tox run