Skip to content
Open
Show file tree
Hide file tree
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
13 changes: 7 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
name: CI
name: CI # name of workflow

on: [push]
on: [push] # trigger

jobs:
jobs: # jobs
test:
runs-on: ubuntu-latest
runs-on: ubuntu-latest # runner
steps:

- name: Checkout repository
uses: actions/checkout@v3

- name: Setup python
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- name: Install requirements
run: pip install -r 01-ci-lab/requirements.txt


- name: Run tests
run: pytest 01-ci-lab

4 changes: 2 additions & 2 deletions 01-ci-lab/app/calculator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def add(a, b):
return a + b
return a + b # returns sum

def divide(a, b):
return a / b
return a / b # returns division