Skip to content

Commit

Permalink
test matrix strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
weijie-chen committed Jun 5, 2024
1 parent 6c2c72c commit f3bd97a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion tests/test_fin_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f3bd97a

Please sign in to comment.