Skip to content

Commit 8165ce1

Browse files
northwestwitchChiara Rasi
andauthored
Update all actions (#347)
* Update all actions * Fix action version * Fix action version * Fix tests action * typo * ehatever * Fix broken action * typo in changelog --------- Co-authored-by: Chiara Rasi <rasi.chiara@gmacil.com>
1 parent 62cb140 commit 8165ce1

11 files changed

Lines changed: 39 additions & 32 deletions

.github/workflows/autodeploy_mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout repo
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
- name: Setup environment for docs deployment
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v5
1717
with:
1818
python-version: 3.x
1919
- name: Install mkdocs

.github/workflows/black.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
name: black
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- name: Set up Python
12-
uses: actions/setup-python@master
12+
uses: actions/setup-python@v5
1313
with:
1414
python-version: 3.8
1515
- name: install black

.github/workflows/docker_build_n_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out git repository
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Publish main image (Dockerfile) to Registry
1717
uses: elgohr/Publish-Docker-Github-Action@master

.github/workflows/docker_build_n_publish_stage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out git repository
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Get branch name
1717
id: branch-name
18-
uses: tj-actions/branch-names@v7.0.7
18+
uses: tj-actions/branch-names@v8
1919

2020
- name: Login to Docker Hub
21-
uses: docker/login-action@v1
21+
uses: docker/login-action@v3
2222
with:
2323
username: ${{ secrets.DOCKER_USERNAME }}
2424
password: ${{ secrets.DOCKER_PASSWORD }}
2525

2626
- name: Set up Docker Buildx
2727
id: buildx
28-
uses: docker/setup-buildx-action@v1
28+
uses: docker/setup-buildx-action@v3
2929

3030
- name: Build and push
3131
if: steps.branch-name.outputs.is_default == 'false'
32-
uses: docker/build-push-action@v2
32+
uses: docker/build-push-action@v6
3333
with:
3434
context: ./
3535
file: ./Dockerfile-server

.github/workflows/flake8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
name: Flake8
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- name: Set up Python
12-
uses: actions/setup-python@master
12+
uses: actions/setup-python@v5
1313
with:
1414
python-version: 3.8
1515
- name: install flake8

.github/workflows/pypi_publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out git repository
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

16-
- name: Set up Python 3.7
17-
uses: actions/setup-python@v2
16+
- name: Set up Python 3.8
17+
uses: actions/setup-python@v5
1818
with:
19-
python-version: 3.7
19+
python-version: 3.8
2020

2121
- name: Install build tools
2222
run: >-

.github/workflows/pytest_codecov.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
setup:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

1616
- name: Set up Python 3.8
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: 3.8
2020

@@ -24,7 +24,7 @@ jobs:
2424
pip check
2525
2626
# Cache package installation step to speed up the following step
27-
- uses: actions/cache@v2
27+
- uses: actions/cache@v4
2828
with:
2929
path: ${{ env.pythonLocation }}
3030
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements-dev.txt') }}
@@ -40,19 +40,19 @@ jobs:
4040
PMATCHER_CONFIG: ../instance/config.py
4141
steps:
4242
- name: Start MongoDB
43-
uses: supercharge/mongodb-github-action@1.7.0
43+
uses: supercharge/mongodb-github-action@1.11.0
4444
with:
4545
mongodb-version: ${{ matrix.mongodb-version }}
4646

47-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v4
4848

4949
- name: Set up Python 3.8
50-
uses: actions/setup-python@v2
50+
uses: actions/setup-python@v5
5151
with:
5252
python-version: 3.8
5353

5454
# Cache package installation step to speed up the following step
55-
- uses: actions/cache@v2
55+
- uses: actions/cache@v4
5656
with:
5757
path: ${{ env.pythonLocation }}
5858
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements-dev.txt') }}
@@ -65,18 +65,19 @@ jobs:
6565
run: pytest --cov --test-group-count 3 --test-group=${{ matrix.group }} --test-group-random-seed=12345
6666

6767
- name: Upload coverage
68-
uses: actions/upload-artifact@v2
68+
uses: actions/upload-artifact@v4
6969
with:
7070
name: coverage${{ matrix.group }}
7171
path: .coverage
72+
include-hidden-files: true
7273

7374
coverage:
7475
needs: test
7576
runs-on: ubuntu-latest
7677
steps:
77-
- uses: actions/checkout@v2
78+
- uses: actions/checkout@v4
7879
- name: Set up Python 3.8
79-
uses: actions/setup-python@v2
80+
uses: actions/setup-python@v5
8081
with:
8182
python-version: 3.8
8283
- name: Install deps
@@ -85,10 +86,10 @@ jobs:
8586
pip install coverage
8687
- name: Download all artifacts
8788
# Download and combine coverage1, coverage2, etc.
88-
uses: actions/download-artifact@v2
89+
uses: actions/download-artifact@v4
8990
- name: Run coverage
9091
run: |
9192
coverage combine coverage*/.coverage*
9293
coverage report
9394
coverage xml
94-
- uses: codecov/codecov-action@v2
95+
- uses: codecov/codecov-action@v4

.github/workflows/vulture.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
name: vulture
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v4
1111

1212
- name: Find changed Python files
1313
id: files
14-
uses: Ana06/get-changed-files@v2.0.0
14+
uses: Ana06/get-changed-files@v2.3.0
1515
with:
1616
filter: "*.py"
1717

.github/workflows/woke.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v4
1111

1212
- name: woke
1313
uses: get-woke/woke-action@v0

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [4.5.1] - 2024-09-04
2+
### Fixed
3+
- Bump actions/download-artifact from 2 to 4 in /.github/workflows (recommended by security advisory)
4+
- Update version of other actions
5+
- Broken upload to Codecov step in Tests & Coverage GitHub action
6+
17
## [4.5] - 2023-11-07
28
## Changed
39
- Unfreeze PyMongo dependency

0 commit comments

Comments
 (0)