Merge pull request #11 from Gaming32/snyk-fix-026d533a9dd8e1c1c21f4be… #182
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
name: PYZ | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build_pyz_and_typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: python -m pip install -Ur requirements.txt -r requirements-dev.txt pyright | |
- name: Perform typecheck | |
run: pyright and_beyond *.py | |
- name: Build client | |
run: python to_pyz.py | |
- name: Build Server | |
run: python to_pyz_server.py | |
- name: Upload PYZs | |
uses: actions/upload-artifact@v2 | |
with: | |
name: pyz-executable | |
path: dist/*.pyz |