Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/_code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

name: Check Python${{ matrix.python-version }}

steps:
- name: checkout current commit
uses: actions/checkout@v2
uses: actions/checkout@v4
if: ${{ inputs.ref == 'default' }}

- name: checkout main
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
if: ${{ inputs.ref != 'default' }}

- name: install python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -48,9 +48,9 @@ jobs:
run: make test

- name: codeql_init
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: 'python'

- name: codeql_analyze
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
6 changes: 3 additions & 3 deletions .github/workflows/check_pr_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
n_commits: ${{ steps.count_commits.outputs.n_commits }}
steps:
- name: checkout current branch
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -23,7 +23,7 @@ jobs:
run: |
git fetch
N_COMMITS=$(git rev-list origin/main.. --count)
echo "::set-output name=n_commits::${N_COMMITS}"
echo "n_commits=${N_COMMITS}" >> $GITHUB_OUTPUT

add_empty_commit_if_only_one:
needs: count_commits
Expand All @@ -33,7 +33,7 @@ jobs:
steps:

- name: checkout current branch
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
startsWith(github.event.head_commit.message, '[PATCH]')
steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.8'

Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
steps:

- name: Checkout main
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0 # fetches entire history for all branches and tags
Expand Down Expand Up @@ -99,12 +99,12 @@ jobs:
steps:

- name: Checkout main
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: main

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.8'

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ lint:

test:
PYTHON_VERSION=$$(python3 --version) && \
if echo "$${PYTHON_VERSION}" | grep -q "3.10"; \
if echo "$${PYTHON_VERSION}" | grep -E -q "3\.[0-9]{2,}"; \
then python3 -m pytest tests; \
else nosetests -v --with-coverage --cover-package=$(PROJECT) tests; \
fi
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ a thumb up: https://gitlab.com/gitlab-org/gitlab/-/issues/352836
---

## Requirements
- Python >= __3.7__ (required by `python-gitlab` since version `3.0.0`)
- Python >= __3.8__ (`python-gitlab` requires python>=3.9 since version `5.0.0`)

## Dependencies
- [python-gitlab](https://github.com/python-gitlab/python-gitlab)
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python-gitlab==3.1.0
giturlparse==0.10.0
python-gitlab>=3.1.0
giturlparse>=0.10.0
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
maintainer='Valentin François',
url='https://github.com/ValentinFrancois/python-gitlab-submodule',
packages=['gitlab_submodule'],
python_requires='>=3.8.0',
install_requires=[
'python-gitlab>=3.0.0',
'giturlparse>=0.10.0'
Expand Down
Loading