feat: add new gcp project #378
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ master, dev ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ] | |
os: [ macos-latest, ubuntu-latest, windows-latest ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements | |
run: | | |
python -m pip install -U pip pipenv | |
pipenv install --deploy --system | |
- name: Check code style | |
if: matrix.python-version == '3.11' | |
run: | | |
pipenv sync --system --dev | |
black -l 120 --check . | |
- name: Command Installation | |
run: | | |
python setup.py install | |
- name: Config Installation | |
if: matrix.os != 'windows-latest' | |
run: | | |
lki install | |
lki install | |
- name: Config Verification | |
if: matrix.os != 'windows-latest' | |
run: | | |
git yes | |
lki clone LKI/LKI | |
test -d ~/code/src/github.com/LKI/LKI || exit 1 |