diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a5826544..404567a8 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -9,7 +9,7 @@ on: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 permissions: actions: read contents: read diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e4de33ec..515c5e72 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -6,27 +6,26 @@ name: Node.js CI with SAM on: [push, pull_request] jobs: linterWithESLint: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v7 with: node-version: 12.x - - run: npm install + - run: npm ci --ignore-scripts - run: npm run lint testWithSAMCLI: - runs-on: ubuntu-latest + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v6 with: - python-version: 3.8 + python-version: "3.12" - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install aws-sam-cli + pip install --only-binary :all: aws-sam-cli==1.167.0 - name: Set up JDK uses: actions/setup-java@v5 with: @@ -61,8 +60,8 @@ jobs: - name: Test CWL packing with pytest working-directory: ./cwlpack run: | - pip install -r tests/requirements.txt --user - pip install -r cwl_pack_function/requirements.txt --user + pip install --only-binary :all: -r tests/requirements.txt --user + pip install --only-binary :all: -r cwl_pack_function/requirements.txt --user python -m pytest tests/unit -v pylint cwl_pack_function pylint tests diff --git a/cwlpack/.pylintrc b/cwlpack/.pylintrc index c6d73d8f..e7c50f9d 100644 --- a/cwlpack/.pylintrc +++ b/cwlpack/.pylintrc @@ -1,2 +1,2 @@ -[MASTER] -init-hook="from pylint.config import find_pylintrc; import os, sys; sys.path.append(os.path.dirname(find_pylintrc()))" +[MAIN] +init-hook="import os, sys; sys.path.append(os.getcwd())" diff --git a/cwlpack/cwl_pack_function/requirements.txt b/cwlpack/cwl_pack_function/requirements.txt index e075405d..62dd882b 100644 --- a/cwlpack/cwl_pack_function/requirements.txt +++ b/cwlpack/cwl_pack_function/requirements.txt @@ -1,3 +1,3 @@ requests==2.32.2 -pygit2==1.7.0 -sbpack==2021.10.7 +pygit2==1.20.1 +sbpack==2024.12.17 diff --git a/cwlpack/template.yaml b/cwlpack/template.yaml index 74bb4628..bbef05ca 100644 --- a/cwlpack/template.yaml +++ b/cwlpack/template.yaml @@ -16,7 +16,7 @@ Resources: Properties: CodeUri: cwl_pack_function/ Handler: app.lambda_handler - Runtime: python3.8 + Runtime: python3.12 Events: HelloWorld: Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api diff --git a/cwlpack/tests/requirements.txt b/cwlpack/tests/requirements.txt index c69fa476..81896752 100644 --- a/cwlpack/tests/requirements.txt +++ b/cwlpack/tests/requirements.txt @@ -1,4 +1,4 @@ -pytest==6.2.5 -pytest-mock==3.6.1 -boto3==1.19.0 -pylint==2.11.1 \ No newline at end of file +pytest==9.0.3 +pytest-mock==3.15.1 +boto3==1.40.0 +pylint==3.3.8