Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.04 KB

ci.md

File metadata and controls

56 lines (44 loc) · 1.04 KB

.github/workflows/scheduled.yml

name: check-for-broken-links

on:
  schedule:
    - cron: '0 8 * * *'

jobs:
  broken-links:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: '3.10'

      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install pkgmt
      - name: Check for broken links
        run: |
          pkgmt check-links

.github/workflows/ci.yml

name: CI

on: [push, pull_request]

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: '3.10'

      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install 'pkgmt>=0.1.1'
      - name: Check project
        run: |
          pkgmt check