Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
c3b2010
chore: use checkout v4 everywhere
jbarreau Dec 17, 2024
8df2393
chore: ensure every packages are in change action
jbarreau Dec 17, 2024
1e3f58b
chore: change version of commented actions
jbarreau Dec 17, 2024
94c570f
chore: improve poetry install on test action
jbarreau Dec 17, 2024
a5ee43a
chore: try without duplicate checkout action
jbarreau Dec 17, 2024
5f8b190
chore: deduplicate checkout action
jbarreau Dec 17, 2024
9a74dc0
chore: try another way of caching
jbarreau Dec 17, 2024
9f2a895
chore: remove cache on tests
jbarreau Dec 17, 2024
ce7c32f
chore: debug if change
jbarreau Dec 17, 2024
e8598d2
chore: debug if change
jbarreau Dec 17, 2024
b3797bf
chore: debug if change
jbarreau Dec 17, 2024
c789070
chore: debug if change
jbarreau Dec 17, 2024
456655a
chore: debug if change
jbarreau Dec 17, 2024
5ce6365
chore: debug if change
jbarreau Dec 17, 2024
357b3f0
chore: debug if change
jbarreau Dec 17, 2024
36eef45
chore: debug if change
jbarreau Dec 17, 2024
a51eab5
chore: debug if change
jbarreau Dec 17, 2024
edf013d
chore: debug if change
jbarreau Dec 17, 2024
35aa67f
chore: debug if change
jbarreau Dec 17, 2024
8fa5b8e
chore: debug if change
jbarreau Dec 17, 2024
fb53975
chore: debug if change
jbarreau Dec 17, 2024
8e08e11
chore: debug if change
jbarreau Dec 17, 2024
4974bcf
chore: debug if change
jbarreau Dec 17, 2024
db5ca96
chore: debug if change
jbarreau Dec 17, 2024
e4598a6
chore: debug if change
jbarreau Dec 17, 2024
1df826b
chore: debug if change
jbarreau Dec 17, 2024
08ed81e
chore: debug if change
jbarreau Dec 17, 2024
843051c
chore: debug if change
jbarreau Dec 17, 2024
6d47b3b
chore: debug if change
jbarreau Dec 17, 2024
e2a4723
chore: debug if change
jbarreau Dec 17, 2024
0ff07f5
chore: try to have a change
jbarreau Dec 17, 2024
d3cf195
chore: debug if change
jbarreau Dec 17, 2024
161fd61
chore: debug if change
jbarreau Dec 17, 2024
728e34d
chore: debug if change
jbarreau Dec 17, 2024
2b9f402
chore: debug if change
jbarreau Dec 17, 2024
a99f7a6
chore: debug if change
jbarreau Dec 17, 2024
6773ed7
chore: debug if change
jbarreau Dec 17, 2024
9b88fbf
chore: debug if change
jbarreau Dec 17, 2024
1eca384
chore: debug if change
jbarreau Dec 17, 2024
cb7e11f
chore: debug if change
jbarreau Dec 17, 2024
25ea0c2
chore: debug if change
jbarreau Dec 17, 2024
0b89233
chore: debug if change
jbarreau Dec 17, 2024
78b9e03
chore: debug if change
jbarreau Dec 17, 2024
69df093
chore: debug if change
jbarreau Dec 17, 2024
b61d17d
chore: debug if change
jbarreau Dec 17, 2024
119a94f
chore: debug if change
jbarreau Dec 17, 2024
0295742
chore: debug if change
jbarreau Dec 17, 2024
73e5a7c
chore: debug if change
jbarreau Dec 17, 2024
15ee4a5
chore: debug if change
jbarreau Dec 17, 2024
cea55b3
chore: debug if change
jbarreau Dec 17, 2024
b8a26d0
chore: debug if change
jbarreau Dec 17, 2024
729a3be
chore: debug if change
jbarreau Dec 17, 2024
f849f7a
chore: debug if change
jbarreau Dec 17, 2024
f73a629
chore: debug if change
jbarreau Dec 17, 2024
2e18135
chore: debug if change
jbarreau Dec 17, 2024
eb993ef
chore: debug if change
jbarreau Dec 17, 2024
f3ecca2
chore: debug if change
jbarreau Dec 17, 2024
3b5e584
chore: debug if change
jbarreau Dec 17, 2024
70d9404
chore: debug if change
jbarreau Dec 17, 2024
66b1184
chore: debug if change
jbarreau Dec 17, 2024
7b2fd0d
chore: remove debug test
jbarreau Dec 17, 2024
01107f7
chore: fix missing step and try not to chekout
jbarreau Dec 17, 2024
9459aeb
chore: test again
jbarreau Dec 17, 2024
5125c8c
chore: remove test value
jbarreau Dec 17, 2024
c3a2128
chore: improve json parsing
jbarreau Dec 17, 2024
a191d20
chore: add test
jbarreau Dec 17, 2024
dec564f
chore: remove test
jbarreau Dec 17, 2024
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
1 change: 0 additions & 1 deletion .github/actions/black/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ runs:
steps:
- name: Cancel previous running workflows
uses: fkirc/skip-duplicate-actions@master
- uses: actions/checkout@v3
- name: Install poetry
shell: bash
working-directory: ${{ inputs.current_package }}
Expand Down
16 changes: 12 additions & 4 deletions .github/actions/changes/action.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
name: Changes
outputs:
packages:
description: changes on all sub packages
value: ${{ toJSON(steps.changes.outputs) }}
runs:
using: "composite"
steps:
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
./src/datasource_toolkit/:
datasource_toolkit:
- 'src/datasource_toolkit/**'
./src/datasource_sqlalchemy:
datasource_sqlalchemy:
- 'src/datasource_sqlalchemy/**'
./src/agent_toolkit:
datasource_django:
- 'src/datasource_django/**'
agent_toolkit:
- 'src/agent_toolkit/**'
./src/flask_agent:
flask_agent:
- 'src/flask_agent/**'
django_agent:
- 'src/django_agent/**'
3 changes: 1 addition & 2 deletions .github/actions/coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- name: Install poetry
shell: bash
working-directory: ./src/
Expand Down Expand Up @@ -45,7 +44,7 @@ runs:

# debug
# - name: Archive code coverage final results
# uses: actions/upload-artifact@v2
# uses: actions/upload-artifact@v4
# with:
# name: coverage.xml
# path: ./src/coverage.xml
1 change: 0 additions & 1 deletion .github/actions/isort/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ runs:
steps:
- name: Cancel previous running workflows
uses: fkirc/skip-duplicate-actions@master
- uses: actions/checkout@v3
- name: Install poetry
shell: bash
working-directory: ${{ inputs.current_package }}
Expand Down
1 change: 0 additions & 1 deletion .github/actions/linting/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ runs:
steps:
- name: Cancel previous running workflows
uses: fkirc/skip-duplicate-actions@master
- uses: actions/checkout@v3
- name: Install poetry
shell: bash
working-directory: ${{ inputs.current_package }}
Expand Down
1 change: 0 additions & 1 deletion .github/actions/pypi/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ runs:
steps:
- name: Cancel previous running workflows
uses: fkirc/skip-duplicate-actions@master
- uses: actions/checkout@v3
- name: Install poetry
shell: bash
working-directory: ${{ inputs.current_package }}
Expand Down
6 changes: 4 additions & 2 deletions .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ outputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
# this is certainly useless, but theses params seems to be here for a good reason.
# I added theses params to the related job in workflows.yml, but still afraid to test
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false # GITHUB_TOKEN must not be set for the semantic release
- uses: actions/setup-node@v2
with:
node-version: 14.17.6
# - uses: actions/cache@v2
# - uses: actions/cache@v4
# with:
# path: '**/node_modules'
# key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install poetry
shell: bash
run: pipx install poetry
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
# cache: 'poetry'
- name: Install poetry
uses: snok/install-poetry@v1
with:
version: 1.7.1
# We are not caching here, because it's impossible to have less than 160MB of cache, meaning
# *6 subpackage, * 5 python version = 5GB, it's too much.
- name: Install package dependencies
shell: bash
working-directory: ${{ inputs.current_package }}
Expand Down
58 changes: 47 additions & 11 deletions .github/workflows/generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ jobs:
changes:
name: changes
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.changes.outputs.packages }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: changes
uses: ./.github/actions/changes

lint:
name: Linting
needs: [ changes ]
Expand All @@ -40,9 +43,19 @@ jobs:
python-version: ['3.10']
current_package: ${{ fromJson(inputs.packages) }}
steps:
- uses: actions/checkout@v3
- name: has change in sub package
id: has_change
run: |
PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
shell: bash
env:
PACKAGE: ${{ matrix.current_package }}
CHANGES: ${{ needs.changes.outputs.packages }}
- uses: actions/checkout@v4
if: ${{ steps.has_change.outputs.has_change != 'false' }}
- id: lint
if: needs.changes.steps.changes.outputs.${{ matrix.current_package }} == 'true'
if: ${{ steps.has_change.outputs.has_change != 'false' }}
uses: ./.github/actions/linting
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -56,9 +69,19 @@ jobs:
python-version: ['3.10']
current_package: ${{ fromJson(inputs.packages) }}
steps:
- uses: actions/checkout@v3
- name: has change in sub package
id: has_change
run: |
PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
shell: bash
env:
PACKAGE: ${{ matrix.current_package }}
CHANGES: ${{ needs.changes.outputs.packages }}
- uses: actions/checkout@v4
if: ${{ steps.has_change.outputs.has_change != 'false' }}
- id: isort
if: needs.changes.outputs.${{ matrix.current_package }} == 'true'
if: ${{ steps.has_change.outputs.has_change != 'false' }}
uses: ./.github/actions/isort
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -72,9 +95,19 @@ jobs:
python-version: ['3.10']
current_package: ${{ fromJson(inputs.packages) }}
steps:
- uses: actions/checkout@v3
- name: has change in sub package
id: has_change
run: |
PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
shell: bash
env:
PACKAGE: ${{ matrix.current_package }}
CHANGES: ${{ needs.changes.outputs.packages }}
- uses: actions/checkout@v4
if: ${{ steps.has_change.outputs.has_change != 'false' }}
- id: isort
if: needs.changes.outputs.${{ matrix.current_package }} == 'true'
if: ${{ steps.has_change.outputs.has_change != 'false' }}
uses: ./.github/actions/black
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -88,7 +121,7 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
current_package: ${{ fromJson(inputs.packages) }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: tests
if: steps.changes.outputs.${{ matrix.current_package }} == 'true'
uses: ./.github/actions/tests
Expand All @@ -103,7 +136,7 @@ jobs:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: coverage
uses: ./.github/actions/coverage
with:
Expand All @@ -123,7 +156,10 @@ jobs:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false # GITHUB_TOKEN must not be set for the semantic release
- id: release
uses: ./.github/actions/release
with:
Expand All @@ -147,7 +183,7 @@ jobs:
python-version: ['3.10']
current_package: ${{ fromJson(inputs.packages) }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: pypi
uses: ./.github/actions/pypi
with:
Expand Down
Loading