-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Refresh tap * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update workflow * Use uv in CI * Use `pass_env` * Fix linting * Skip package installation for Ruff --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
a0d7e5f
commit 1f83650
Showing
12 changed files
with
1,237 additions
and
1,192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
TAP_JIRA_AUTH_FLOW = '' | ||
TAP_JIRA_AUTH_USERNAME = '' | ||
TAP_JIRA_AUTH_PASSWORD = '' | ||
TAP_JIRA_DOMAIN = '' | ||
TAP_JIRA_DOMAIN='' | ||
TAP_JIRA_API_TOKEN='' | ||
TAP_JIRA_EMAIL='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,66 @@ | ||
### A CI workflow template that runs linting and python testing | ||
### TODO: Modify as needed or as desired. | ||
|
||
name: Test tap-jira | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- .github/workflows/ci_workflow.yml | ||
- tap_jira/** | ||
- pyproject.toml | ||
- poetry.lock | ||
- tox.ini | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- .github/workflows/ci_workflow.yml | ||
- tap_jira/** | ||
- pyproject.toml | ||
- poetry.lock | ||
- tox.ini | ||
|
||
env: | ||
FORCE_COLOR: "1" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
linting: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# Only lint using the primary version used for dev | ||
python-version: ["3.9"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install pipx and Poetry | ||
run: | | ||
pip install pipx poetry | ||
- name: Run lint command from tox.ini | ||
run: | | ||
pipx run tox -e lint | ||
python-version: 3.x | ||
- uses: astral-sh/setup-uv@v4 | ||
with: | ||
version: ">=0.5" | ||
- run: uvx --with tox-uv tox -e lint | ||
|
||
pytest: | ||
name: Python ${{ matrix.python-version }} - pytest | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
strategy: | ||
max-parallel: 2 | ||
matrix: | ||
python-version: ["3.9"] | ||
python-version: | ||
- "3.13" | ||
- "3.12" | ||
- "3.11" | ||
- "3.10" | ||
- "3.9" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Poetry | ||
run: | | ||
pip install poetry | ||
- name: Install dependencies | ||
run: | | ||
poetry install | ||
- uses: astral-sh/setup-uv@v4 | ||
with: | ||
version: ">=0.5" | ||
- name: Test with pytest | ||
id: test_pytest | ||
continue-on-error: false | ||
env: | ||
TAP_JIRA_AUTH_FLOW: ${{ secrets.flow }} | ||
TAP_JIRA_AUTH_USERNAME: ${{ secrets.username }} | ||
TAP_JIRA_AUTH_PASSWORD: ${{ secrets.password }} | ||
TAP_JIRA_DOMAIN: ${{ secrets.domain }} | ||
run: | | ||
poetry run pytest --capture=no | ||
TAP_JIRA_DOMAIN: ${{ secrets.TAP_JIRA_DOMAIN }} | ||
TAP_JIRA_API_TOKEN: ${{ secrets.TAP_JIRA_API_TOKEN }} | ||
TAP_JIRA_EMAIL: ${{ secrets.TAP_JIRA_EMAIL }} | ||
run: uvx --with tox-uv tox -e ${{ matrix.python-version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.