Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/MetaphorData/connectors int…
Browse files Browse the repository at this point in the history
…o pbi
  • Loading branch information
alyiwang committed Oct 10, 2024
2 parents a587108 + 4cb34bd commit af19c3b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: CD

env:
PYTHON_VERSION: 3.9
POETRY_VERSION: 1.2.2
NODE_VERSION: 16
POETRY_VERSION: 1.8.3
NODE_VERSION: 20
DOCKER_IMAGE: metaphordata/connectors

permissions:
Expand All @@ -31,17 +31,17 @@ jobs:
minor: ${{ steps.get-version.outputs.minor }}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- run: npm install toml

- id: get-version
name: Get version
uses: actions/github-script@v5
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
Expand All @@ -57,15 +57,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Setup Poetry
uses: abatilo/actions-poetry@v2.1.4
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ env.POETRY_VERSION }}

Expand All @@ -80,7 +80,7 @@ jobs:
poetry run coverage xml
- name: Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -92,15 +92,15 @@ jobs:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Setup Poetry
uses: abatilo/actions-poetry@v2.1.4
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ env.POETRY_VERSION }}

Expand All @@ -111,7 +111,7 @@ jobs:
-p ${{ secrets.PYPI_PASSWORD }}
- name: Create tag
uses: actions/github-script@v5
uses: actions/github-script@v7
with:
github-token: ${{ github.token }}
script: |
Expand Down Expand Up @@ -139,15 +139,15 @@ jobs:
needs: version
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
Expand All @@ -159,7 +159,7 @@ jobs:

- name: Build Docker image
if: steps.check.outcome == 'failure'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name: CI

env:
PYTHON_VERSION: 9
POETRY_VERSION: 1.2.2
PYTHON_VERSION: 3.9
POETRY_VERSION: 1.8.3

# Run this build workflow for every new PR
on:
Expand All @@ -25,10 +25,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
poetry run coverage xml
- name: Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -77,15 +77,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Setup Poetry
uses: abatilo/actions-poetry@v2.1.4
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ env.POETRY_VERSION }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -55,7 +55,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -69,4 +69,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "metaphor-connectors"
version = "0.14.123"
version = "0.14.124"
license = "Apache-2.0"
description = "A collection of Python-based 'connectors' that extract metadata from various sources to ingest into the Metaphor app."
authors = ["Metaphor <[email protected]>"]
Expand Down

0 comments on commit af19c3b

Please sign in to comment.