@@ -2,45 +2,43 @@ name: Hytale API Wrapper
22
33on :
44 push :
5- branches : [ "main" ]
5+ branches : ["main"]
66 pull_request :
7- branches : [ "main" ]
7+ branches : ["main"]
88
99jobs :
1010 build :
11-
1211 runs-on : ubuntu-latest
1312 strategy :
1413 fail-fast : false
1514 matrix :
1615 python-version : ["3.9", "3.10", "3.11"]
1716
1817 steps :
19- - uses : actions/checkout@v4
20-
21- - name : Set up Python ${{ matrix.python-version }}
22- uses : actions/setup-python@v3
23- with :
24- python-version : ${{ matrix.python-version }}
25-
26- - name : Install dependencies
27- run : |
28- python -m pip install --upgrade pip
29- pip install black flake8 pytest
30- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31- # If you have a pyproject.toml with dev dependencies:
32- # pip install -e .[dev]
33-
34- - name : Check code style with Black
35- run : |
36- black --check .
37-
38- - name : Lint with flake8
39- run : |
40- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
41- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
42- flake8 . --max-line-length=100
43-
44- - name : Run tests with pytest
45- run : |
46- pytest
18+ - uses : actions/checkout@v4
19+
20+ - name : Set up Python ${{ matrix.python-version }}
21+ uses : actions/setup-python@v3
22+ with :
23+ python-version : ${{ matrix.python-version }}
24+
25+ - name : Install dependencies
26+ run : |
27+ python -m pip install --upgrade pip
28+ pip install black flake8 pytest
29+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+ pip install -e .[dev]
31+
32+ - name : Check code style with Black
33+ run : |
34+ black --check .
35+
36+ - name : Lint with flake8
37+ run : |
38+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
39+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
40+ flake8 . --max-line-length=100
41+
42+ - name : Run tests with pytest
43+ run : |
44+ pytest
0 commit comments