diff --git a/.github/workflows/dispatch-matrix-combo.yml b/.github/workflows/dispatch-matrix-combo.yml index 6ef18f0..043c7cb 100644 --- a/.github/workflows/dispatch-matrix-combo.yml +++ b/.github/workflows/dispatch-matrix-combo.yml @@ -36,8 +36,6 @@ jobs: else echo "env=production" >> $GITHUB_OUTPUT fi - - echo $set-env setup: runs-on: ubuntu-latest needs: pre diff --git a/.github/workflows/lvl-3.yml b/.github/workflows/lvl-3.yml index 3358ee0..19b1a47 100644 --- a/.github/workflows/lvl-3.yml +++ b/.github/workflows/lvl-3.yml @@ -15,8 +15,9 @@ jobs: needs: job-one steps: - - run: echo "Step-1 is completed", - echo "step-2 is running" + - run: | + echo "step-1 is completed" + echo "step-2 is running" job-three: runs-on: ubuntu-latest diff --git a/.github/workflows/lvl-4.yml b/.github/workflows/lvl-4.yml index 94d2c87..b2c0b5f 100644 --- a/.github/workflows/lvl-4.yml +++ b/.github/workflows/lvl-4.yml @@ -9,5 +9,6 @@ jobs: runs-on: ubuntu-latest steps: - - run: echo "Hello" - echo " world" + - run: | + echo "Hello" + echo " world" diff --git a/.github/workflows/matrix-issue.yml b/.github/workflows/matrix-issue.yml index 6f8a933..336f699 100644 --- a/.github/workflows/matrix-issue.yml +++ b/.github/workflows/matrix-issue.yml @@ -23,7 +23,7 @@ jobs: - setup strategy: matrix: ${{ fromJSON(needs.setup.outputs.matrix) }} - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - id: step1 name: Pretend we are doing something diff --git a/.github/workflows/task-3.yml b/.github/workflows/task-3.yml index e275ca6..ccccdcb 100644 --- a/.github/workflows/task-3.yml +++ b/.github/workflows/task-3.yml @@ -20,7 +20,7 @@ jobs: - name: cache node modules uses: actions/cache@v4 with: - path: /.npm + path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json')}} restore-keys: | ${{ runner.os }}-node @@ -35,4 +35,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: build-output - path: /dist + path: dist diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 443ef8e..14937e2 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -19,15 +19,12 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.10' + cache: 'pip' - name: Install dependencies - run: | - pip install -r requirements.txt + run: pip install -r requirements.txt - name: Run tests with pytest - run: | - echo "====== Start running tests ======" - pytest tests/calculator_tests.py - echo "===== Finish running tests ======" + run: pytest tests/calculator_tests.py diff --git a/requirements.txt b/requirements.txt index 107957b..55b033e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1 @@ -pytest -numpy \ No newline at end of file +pytest \ No newline at end of file diff --git a/src/calculator.py b/src/calculator.py index 5ac5372..1a69b98 100644 --- a/src/calculator.py +++ b/src/calculator.py @@ -1,5 +1,3 @@ -import numpy as np - def add(a, b): """Returns the sum of a and b.""" return a + b