File tree Expand file tree Collapse file tree 12 files changed +29
-30
lines changed
Expand file tree Collapse file tree 12 files changed +29
-30
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ jobs:
1111
1212 steps :
1313 - name : Checkout code
14- uses : actions/checkout@v3
14+ uses : actions/checkout@v4
1515
1616 - name : Set up Python
1717 uses : actions/setup-python@v5
1818 with :
19- python-version : 3.x
19+ python-version : ' 3.10 '
2020
2121 - name : Install dependencies
22- run : pip install -r requirements.txt
22+ run : pip install --no-cache-dir - r requirements.txt
2323
2424 - name : Find Python files
2525 run : find swarms_torch -name "*.py" -type f -exec autopep8 --in-place --aggressive --aggressive {} +
Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ jobs:
1010 runs-on : ubuntu-latest
1111 steps :
1212 - name : Checkout code
13- uses : actions/checkout@v2
13+ uses : actions/checkout@v4
1414
1515 - name : Set up Python
1616 uses : actions/setup-python@v5
1717 with :
18- python-version : 3.x
18+ python-version : ' 3.10 '
1919
2020 - name : Install dependencies
21- run : pip install -r requirements.txt
21+ run : pip install --no-cache-dir - r requirements.txt
2222
2323 - name : Run unit tests
2424 run : pytest tests/unit
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ jobs:
1010 deploy :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v3
13+ - uses : actions/checkout@v4
1414 - uses : actions/setup-python@v5
1515 with :
16- python-version : 3.x
16+ python-version : ' 3.10 '
1717 - run : pip install mkdocs-material
1818 - run : pip install "mkdocstrings[python]"
1919 - run : mkdocs gh-deploy --force
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ jobs:
1111
1212 steps :
1313 - name : Checkout code
14- uses : actions/checkout@v3
14+ uses : actions/checkout@v4
1515
1616 - name : Set up Python
1717 uses : actions/setup-python@v5
1818 with :
19- python-version : 3.x
19+ python-version : ' 3.10 '
2020
2121 - name : Install dependencies
22- run : pip install -r requirements.txt
22+ run : pip install --no-cache-dir - r requirements.txt
2323
2424 - name : Build documentation
2525 run : make docs
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ jobs:
1111
1212 steps :
1313 - name : Checkout code
14- uses : actions/checkout@v2
14+ uses : actions/checkout@v4
1515
1616 - name : Set up Python
1717 uses : actions/setup-python@v5
1818 with :
19- python-version : 3.x
19+ python-version : ' 3.10 '
2020
2121 - name : Install dependencies
22- run : pip install -r requirements.txt
22+ run : pip install --no-cache-dir - r requirements.txt
2323
2424 - name : Run linters
2525 run : pylint swarms_torch
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ jobs:
1111
1212 steps :
1313 - name : Checkout code
14- uses : actions/checkout@v2
14+ uses : actions/checkout@v4
1515
1616 - name : Set up Python
1717 uses : actions/setup-python@v5
1818 with :
19- python-version : 3.x
19+ python-version : ' 3.10 '
2020
2121 - name : Install dependencies
22- run : pip install -r requirements.txt
22+ run : pip install --no-cache-dir - r requirements.txt
2323
2424 - name : Run tests and checks
2525 run : |
Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88 strategy :
99 matrix :
10- python-version : ["3.8", "3. 9", "3.10"]
10+ python-version : ["3.9", "3.10"]
1111 steps :
1212 - uses : actions/checkout@v4
1313 - name : Set up Python ${{ matrix.python-version }}
1616 python-version : ${{ matrix.python-version }}
1717 - name : Install dependencies
1818 run : |
19- python -m pip install --upgrade pip
19+ python -m pip install --no-cache-dir -- upgrade pip
2020 pip install pylint
2121 - name : Analysing the code with pylint
2222 run : |
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ jobs:
1818 - name : Set up Python
1919 uses : actions/setup-python@v5
2020 with :
21- python-version : ' 3.x '
21+ python-version : ' 3.10 '
2222 - name : Install dependencies
2323 run : |
24- python -m pip install --upgrade pip
24+ python -m pip install --no-cache-dir -- upgrade pip
2525 pip install build
2626 - name : Build package
2727 run : python -m build
Original file line number Diff line number Diff line change 99
1010 steps :
1111 - uses : actions/checkout@v4
12- - name : Set up Python 3.8
12+ - name : Set up Python 3.10
1313 uses : actions/setup-python@v5
1414 with :
15- python-version : 3.8
15+ python-version : ' 3.10 '
1616 - name : Install dependencies
1717 run : |
18- python -m pip install --upgrade pip
18+ python -m pip install --no-cache-dir -- upgrade pip
1919 pip install pytest
20- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
20+ if [ -f requirements.txt ]; then pip install --no-cache-dir - r requirements.txt; fi
2121 - name : Run tests with pytest
2222 run : |
2323 pytest tests/
Original file line number Diff line number Diff line change 1515 strategy :
1616 matrix :
1717 python-version :
18- - " 3.8"
1918 - " 3.9"
2019 - " 3.10"
2120 - " 3.11"
You can’t perform that action at this time.
0 commit comments