Skip to content

Test

Test #1812

Workflow file for this run

name: Test
on:
push:
pull_request:
schedule:
- cron: "0 6 * * *" # daily at 6am
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.noxenv }}
if: ${{ github.repository_owner == 'pypa' || github.event_name != 'schedule' }}
runs-on: ubuntu-latest
strategy:
matrix:
noxenv:
- build
- linkcheck
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'
cache-dependency-path: 'requirements.txt'
- name: Install dependencies
run: |
python -m pip install --upgrade nox virtualenv
- name: Nox ${{ matrix.noxenv }}
run: |
python -m nox -s ${{ matrix.noxenv }}