1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
name: build
on:
push:
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
py: ['3.6', '3.10']
name: "Run Tests on ${{ matrix.os }}, py${{ matrix.py }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py }}
- name: install requirements
run: python -m pip install tox
- name: test
run: python -m tox -e py
- name: twine-check
run: python -m tox -e twine-check
self-check:
name: "Self-Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: install from source
run: |
python -m pip install -U pip setuptools
python -m pip install .
- name: run on own workflows via HTTPS schema
run: check-jsonschema --schemafile "https://json.schemastore.org/github-workflow" .github/workflows/*.yaml
- name: run on own workflows via vendored schema
run: check-jsonschema --builtin-schema vendor.github-workflow .github/workflows/*.yaml
|