build: added aw-watcher-input, aw-leaderboard-rust, aw-leaderboard-fi… #23
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: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
name: Test on ${{ matrix.os }}, py-${{ matrix.python_version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python_version: ['3.10'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Create virtualenv | |
shell: bash | |
run: | | |
pip install virtualenv | |
python -m virtualenv venv | |
- name: Install dependencies | |
shell: bash | |
run: | | |
pip install poetry | |
source venv/bin/activate || source venv/Scripts/activate | |
poetry install | |
- name: Run tests | |
shell: bash | |
run: | | |
source venv/bin/activate || source venv/Scripts/activate | |
make test | |
typecheck: | |
name: Typecheck on ${{ matrix.os }}, py-${{ matrix.python_version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python_version: ['3.10'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Create virtualenv | |
shell: bash | |
run: | | |
pip install virtualenv | |
python -m virtualenv venv | |
- name: Install dependencies | |
shell: bash | |
run: | | |
pip install poetry | |
source venv/bin/activate || source venv/Scripts/activate | |
poetry install | |
- name: Run tests | |
shell: bash | |
run: | | |
source venv/bin/activate || source venv/Scripts/activate | |
make typecheck |