From 2376428c7a77bb0c7037bd48a138c8229db6bbbd Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Thu, 21 Dec 2023 20:06:41 +0545 Subject: [PATCH] upgrade python to 3.10 for workflows --- .github/workflows/Unit-Test.yml | 4 ++-- .github/workflows/build.yml | 4 ++-- .github/workflows/code-check.yml | 6 +++--- .github/workflows/publish_mkdocs.yml | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/Unit-Test.yml b/.github/workflows/Unit-Test.yml index e021283e..123e1960 100644 --- a/.github/workflows/Unit-Test.yml +++ b/.github/workflows/Unit-Test.yml @@ -31,10 +31,10 @@ jobs: options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 2 steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.10 uses: actions/setup-python@v1 with: - python-version: 3.8 + python-version: 3.10 - name: Insert sample db data run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b689ac9d..fe9dc0f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,10 +33,10 @@ jobs: options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 2 steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.10 uses: actions/setup-python@v1 with: - python-version: 3.8 + python-version: 3.10 - name: Install necessary dependecies for rawdata loading run: sudo apt-get update && sudo apt-get install osm2pgsql - name: check version diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index 35a56d58..1b19d083 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -2,7 +2,7 @@ name: Code Check - Linting using flake8 on: push: paths-ignore: - - 'infra/**' + - "infra/**" branches: - master - develop @@ -16,10 +16,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.10 uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.10 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/publish_mkdocs.yml b/.github/workflows/publish_mkdocs.yml index 5f511b5a..ed95c3b6 100644 --- a/.github/workflows/publish_mkdocs.yml +++ b/.github/workflows/publish_mkdocs.yml @@ -6,8 +6,8 @@ on: - master paths: # Only rebuild documentation when docs have changed - - 'docs/**' - - '.github/workflows/publish_mkdocs.yml' + - "docs/**" + - ".github/workflows/publish_mkdocs.yml" permissions: contents: write jobs: @@ -15,10 +15,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.8 + - name: Set up Python 3.10 uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.10 publish_branch: gh-pages - name: Install Dependencies run: |