Skip to content
Draft
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
2 changes: 0 additions & 2 deletions .github/workflows/dispatch-matrix-combo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ jobs:
else
echo "env=production" >> $GITHUB_OUTPUT
fi

echo $set-env
setup:
runs-on: ubuntu-latest
needs: pre
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/lvl-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/lvl-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: echo "Hello"
echo " world"
- run: |
echo "Hello"
echo " world"
2 changes: 1 addition & 1 deletion .github/workflows/matrix-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/task-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -35,4 +35,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: build-output
path: /dist
path: dist
9 changes: 3 additions & 6 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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


3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pytest
numpy
pytest
2 changes: 0 additions & 2 deletions src/calculator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import numpy as np

def add(a, b):
"""Returns the sum of a and b."""
return a + b
Expand Down