From 5239b3555339b62b9f8040a8fd43d9231e76c4e2 Mon Sep 17 00:00:00 2001 From: gitaroktato Date: Tue, 9 Apr 2024 17:16:38 +0200 Subject: [PATCH] feat: Adding mypy checks --- .github/workflows/python-app.yml | 20 +++++++++++++++++++- README.md | 1 + 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index e8bdc6e..e05cf95 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.10 + - name: Set up Python 3.12 uses: actions/setup-python@v3 with: python-version: "3.12" @@ -37,3 +37,21 @@ jobs: - name: Test with pytest run: | pytest + + mypy: + runs-on: ubuntu-latest + steps: + - name: Setup Python + uses: actions/setup-python@v3 + with: + python-version: "3.12" + - name: Checkout + uses: actions/checkout@v1 + - name: Install mypy + run: pip install mypy + - name: Run mypy + uses: sasanquaneuf/mypy-github-action@releases/v1 + with: + checkName: 'mypy' # NOTE: this needs to be the same as the job name + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 7b56303..44b9591 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ jupyter lab - https://github.com/miguelrizzog96/Queue_Simulation_Python/blob/master/server.ipynb - https://notebook.community/xunilrj/sandbox/courses/IMTx-Queue-Theory/Week2_Lab_MM1 - https://github.com/eveneveno/MMC_queue +- https://github.com/miguelrizzog96/Queue_Simulation_Python ## Distributions - https://numpy.org/doc/stable/reference/random/generated/numpy.random.exponential.html