Skip to content

Commit b48454d

Browse files
authored
Merge pull request #18 from evelynmitchell/main
2 parents 3ebd8ae + 66bef49 commit b48454d

File tree

13 files changed

+56
-30
lines changed

13 files changed

+56
-30
lines changed

.github/workflows/code_quality_control.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {} +

.github/workflows/cos_integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/docs_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/lints.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/pr_request_checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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: |

.github/workflows/pylint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
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 }}
@@ -16,7 +16,7 @@ jobs:
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: |

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/run_test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
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/

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
strategy:
1616
matrix:
1717
python-version:
18-
- "3.8"
1918
- "3.9"
2019
- "3.10"
2120
- "3.11"

0 commit comments

Comments
 (0)