name: PDF Splitter Python Sample
on:
  push:
    branches:
      - main
    paths:
      - "pdf-splitter-python/**"
  pull_request:
    branches:
      - main
    paths:
      - "pdf-splitter-python/**"
jobs:
  unit:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: ./pdf-splitter-python
    strategy:
      matrix:
        python: ["3.7", "3.8", "3.9", "3.10"]
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup Python
        uses: actions/setup-python@v3
        with:
          python-version: ${{ matrix.python }}
      - name: Install requirements.txt
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements.txt
      - name: Install pylint
        run: |
          python -m pip install --upgrade pip
          pip install pylint
      - name: Analyze code with pylint
        run: |
          pylint $(git ls-files '*.py')
      - name: Run unit tests
        run: |
          python main_test.py

name: PDF Splitter Python Sample
on:
  push:
    branches:
      - main
    paths:
      - "pdf-splitter-python/**"
  pull_request:
    branches:
      - main
    paths:
      - "pdf-splitter-python/**"
jobs:
  unit:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: ./pdf-splitter-python
    strategy:
      matrix:
        python: ["3.7", "3.8", "3.9", "3.10"]
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup Python
        uses: actions/setup-python@v3
        with:
          python-version: ${{ matrix.python }}
      - name: Install requirements.txt
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements.txt
      - name: Install pylint
        run: |
          python -m pip install --upgrade pip
          pip install pylint
      - name: Analyze code with pylint
        run: |
          pylint $(git ls-files '*.py')
      - name: Run unit tests
        run: |
          python main_test.py

Update actions/checkout action to v3
Update actions/checkout action to v3
