lab1 #11
Workflow file for this run
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: CS102 Workflow | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10.8' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install black mypy pylint pygame pytelegrambotapi pandas boddle bottle | |
- name: Install project dependencies | |
run: | | |
if [ -f ${{ github.head_ref }}/requirements.txt ]; | |
then | |
pip install -r ${{ github.head_ref }}/requirements.txt | |
fi | |
- name: Run unittests | |
run: | | |
python3 -m unittest ${GITHUB_WORKSPACE}/tests/lab1/test_calculator.py | |