11# This workflow will ensure that the pushed contents to the repo
2- # are not majorly breaking, and they comply with black standards .
2+ # are not majorly breaking.
33
44name : Pytests
55
@@ -16,10 +16,10 @@ jobs:
1616
1717 steps :
1818 - name : Checkout
19- uses : actions/checkout@v4
19+ uses : actions/checkout@v5
2020
2121 - name : Setup Python 3.9
22- uses : actions/setup-python@v5
22+ uses : actions/setup-python@v6
2323 with :
2424 python-version : " 3.9"
2525 cache : " pip" # Cache the pip packages to speed up the workflow
3434 shell : bash
3535 env :
3636 TEST_API_KEY : ${{ secrets.TEST_API_KEY }}
37- run : python -m pytest --cov=fortnite_api --import-mode=importlib -vs tests/
38-
39- black :
40- name : Black Formatting Check
41- runs-on : ubuntu-latest
42-
43- # Checkout the repository
44- steps :
45- - name : Checkout
46- uses : actions/checkout@v4
47-
48- - name : Setup Python 3.9
49- uses : actions/setup-python@v5
50- with :
51- python-version : " 3.9"
52- cache : " pip" # Cache the pip packages to speed up the workflow
53-
54- - name : Install Dependencies and Project
55- run : |
56- python -m pip install -U pip setuptools
57- pip install -U -r requirements.txt
58- pip install -e .[dev]
59-
60- - name : Run Black Check
61- run : black --check --diff --verbose fortnite_api
62-
63- isort :
64- name : Isort Formatting Check
65- runs-on : ubuntu-latest
66-
67- # Checkout the repository
68- steps :
69- - name : Checkout
70- uses : actions/checkout@v4
71-
72- - name : Setup Python 3.9
73- uses : actions/setup-python@v5
74- with :
75- python-version : " 3.9"
76- cache : " pip" # Cache the pip packages to speed up the workflow
77-
78- - name : Install Dependencies and Project
79- run : |
80- python -m pip install -U pip setuptools
81- pip install -U -r requirements.txt
82- pip install -e .[dev]
83-
84- - name : Run Isort Check
85- run : isort --check --diff fortnite_api
37+ run : python -m pytest --cov=fortnite_api --import-mode=importlib -vs tests/
0 commit comments