Issue #756: Add time complexity and Python code examples for common heap operations #324
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
# This is a basic workflow to help you get started with Actions | |
name: Test Code | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
pull_request: | |
branches: [ main ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
test: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
# run test_code.py | |
# setup python | |
- name: Setup Languages | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
# - name: Setup Java | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
# - name: Setup Node.js | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
# # - name: Setup C# | |
# - uses: actions/setup-dotnet@v3 | |
# with: | |
# dotnet-version: '5.0.x' | |
# - name: Setup Go | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.17' | |
# - name: Setup PHP | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.0' | |
# - name: Setup Ruby | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
# install dependencies | |
- name: Install dependencies | |
run: | | |
pip install termcolor | |
- name: Run test_code.py | |
run: | | |
cd .github | |
python test_code.py | |