diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bb4f94f..96741bb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/01-ci-lab/app/calculator.py b/01-ci-lab/app/calculator.py index 7382287..82a78aa 100644 --- a/01-ci-lab/app/calculator.py +++ b/01-ci-lab/app/calculator.py @@ -1,5 +1,5 @@ def add(a, b): - return a + b + return a + b # returns sum def divide(a, b): - return a / b \ No newline at end of file + return a / b # returns division \ No newline at end of file