Update README.md #33
This file contains 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
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
- wiblum/* | |
- blumu/* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Use Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Use node tools | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: Pull pip packages from cache | |
uses: actions/cache@v2 | |
with: | |
key: pip-"${{ runner.os }}"-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements.dev.txt') }}-${{ hashFiles('setup.py') }} | |
restore-keys: pip-"${{ runner.os }}" | |
path: ${{ env.pythonver.pythonLocation }}/lib/python3.9/site-packages | |
- name: Pull typing stubs from cache | |
uses: actions/cache@v2 | |
with: | |
key: typingstubs-${{ runner.os }}-${{ hashFiles('createstubs.sh') }} | |
restore-keys: typingstubs-${{ runner.os }}-${{ hashFiles('createstubs.sh') }} | |
path: typings/ | |
- name: Initialize build environment | |
run: TERM=dumb && ./init.sh -n | |
- name: Lint [flake8] | |
run: | | |
pip install flake8 | |
flake8 --benchmark | |
- name: Typecheck [pyright] | |
run: ./pyright.sh | |
- name: Test [pytest] | |
run: | | |
pip install six pexpect wcwidth | |
pip install pytest-azurepipelines | |
python -m pytest -v cyberbattle |