Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created workflow #1

Merged
merged 3 commits into from
Aug 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 1. Name of workflow
name: Unit Tests

# 2. When to run workflow
on:
pull_request:
push:
branches:
- main
merge_group:

# 3. Jobs to run (in parallel)
jobs:

# 3.1. Job name (internal)
test:

# 3.2. Job name (external)
name: Unit Tests

# 3.3. Runner OS (can be Windows, macOS, or Linux)
runs-on: ubuntu-latest

# 3.4. Sequential steps in job
steps:

# 3.4.1. Checkout code
- name: 🛎 Checkout
uses: actions/checkout@v3

# 3.4.2. Install and setup Python
- name: 🐍 Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
# cache: 'pip'

# Install dependencies (if any). They will be cached with saved for next time with the cache command above

# 3.4.3. Run tests (execute arbitrary commands in shell)
- name: 🏃Run tests
run: python -m unittest ./tests/test_demo_class.py