diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml new file mode 100644 index 0000000..82d4f95 --- /dev/null +++ b/.github/workflows/matrix.yml @@ -0,0 +1,18 @@ +name: Matrix Strategy Workflow +on: [push, workflow_dispatch, pull_request] +jobs: + PR-Verification: + strategy: + matrix: + python-version: [3.10, 3.11, 3.12] + operating-system: [ubuntu-latest, windows-latest, macOS-latest] + runs-on: $ {{ matrix.operating-system }} + steps: + - name: Get code + uses: actions/checkout@v4 + + - name: Install Poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + export PATH="$HOME/.local/bin:$PATH" + diff --git a/tests/test_fin_utils.py b/tests/test_fin_utils.py index 15a59e1..4857d41 100644 --- a/tests/test_fin_utils.py +++ b/tests/test_fin_utils.py @@ -19,4 +19,4 @@ def test_calculate_parametric_var(): calculated_var = calculate_parametric_var(value, confidence, mu, sigma) # Assert the result - assert calculated_var == pytest.approx(expected_varr, rel=1e-5) + assert calculated_var == pytest.approx(expected_var, rel=1e-5)