Repository: FlexMeasures/flexmeasures (language: python)

Issue:
Update several Github actions (as Node12 is deprecated soon there)
This deprecation notice appears below Github Action runs:

```
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16:
- actions/setup-python@v2
- actions/checkout@v2
- pre-commit/action@v2.0.0
For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
```

Not sure yet what exactly we'll have to do.
I guess visiting the websites of the said actions and find out what the latest stable version is.

For example, https://github.com/actions/setup-python/releases is at 4.5 already. So using "@v4" there instead of using "@v2" would be what I'd try first.



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index c75618244..96f44a743 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -18,7 +18,7 @@ jobs:
           running-workflow-name: "Deploy (main to staging)"  # name of the check that will wait for other checks
           repo-token: ${{ secrets.GITHUB_TOKEN }}
           wait-interval: 20 # seconds
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
           fetch-depth: '0'
           ref: 'main'


Test patch:
diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml
index 24ffe04c1..163591863 100644
--- a/.github/workflows/lint-and-test.yml
+++ b/.github/workflows/lint-and-test.yml
@@ -7,11 +7,11 @@ jobs:
     runs-on: ubuntu-latest
     name: Check (on Python 3.9)
     steps:
-      - uses: actions/setup-python@v2
+      - uses: actions/setup-python@v4
         with:
           python-version: 3.9
-      - uses: actions/checkout@v2
-      - uses: pre-commit/action@v2.0.0
+      - uses: actions/checkout@v3
+      - uses: pre-commit/action@v3.0.0
 
   test:
     needs: check
@@ -26,11 +26,11 @@ jobs:
             coverage: yes
     name: "Test (on Python ${{ matrix.py_version }})"
     steps:
-      - uses: actions/setup-python@v2
+      - uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.py_version }}
       - name: Check out src from Git
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
       - name: Get history and tags for SCM versioning to work
         run: |
           git fetch --prune --unshallow