Skip to content

1.6.5 - Add option to skip file contents checking #225

1.6.5 - Add option to skip file contents checking

1.6.5 - Add option to skip file contents checking #225

---
name: Python Package
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
TWINE_PASSWORD: ${{secrets.TWINE_PASSWORD}}
jobs:
build:
runs-on: ${{matrix.system}}
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
system:
- ubuntu-latest
- macos-latest
- windows-latest
env:
PYTHON_VERSION: ${{matrix.python-version}}
steps:
- uses: actions/checkout@master
with:
submodules: recursive
- name: python${{matrix.python-version}} setup
uses: actions/setup-python@main
with:
python-version: ${{matrix.python-version}}
cache: pip
- run: pip${{matrix.python-version}} install vmklib>=1.8.0
- run: mk python-sa-types
if: |
matrix.python-version != '3.7'
|| matrix.system != 'windows-latest'
- name: lint and build
run: mk python-lint python-sa yaml python-build-once
env:
PY_LINT_MYPY_EXTRA_ARGS: --no-incremental
if: |
matrix.python-version != '3.7'
|| matrix.system != 'windows-latest'
- run: mk python-test
env:
PY_TEST_EXTRA_ARGS: --cov-report=xml
if: |
matrix.python-version != '3.7'
|| matrix.system != 'windows-latest'
- uses: codecov/codecov-action@main
if: |
matrix.python-version != '3.7'
|| matrix.system != 'windows-latest'
- run: mk pypi-upload-ci
env:
TWINE_USERNAME: __token__
if: |
matrix.python-version == '3.8'
&& matrix.system == 'ubuntu-latest'
&& env.TWINE_PASSWORD != ''
&& github.ref_name == 'master'