Skip to content

Commit

Permalink
chore: restore correct values
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarreau committed Jan 6, 2025
1 parent b52bea1 commit 4646863
Showing 1 changed file with 89 additions and 90 deletions.
179 changes: 89 additions & 90 deletions .github/workflows/generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,101 +24,100 @@ on:
SLACK_WEBHOOK:
required: true
jobs:
# changes:
# name: changes
# runs-on: ubuntu-latest
# outputs:
# packages: ${{ steps.changes.outputs.packages }}
# steps:
# - uses: actions/checkout@v4
# - id: changes
# uses: ./.github/actions/changes
# lint:
# name: Linting
# needs: [ changes ]
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ['3.10']
# current_package: ${{ fromJson(inputs.packages) }}
# steps:
# - 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: ${{ steps.has_change.outputs.has_change != 'false' }}
# uses: ./.github/actions/linting
# with:
# python-version: ${{ matrix.python-version }}
# current_package: ${{ matrix.current_package }}
# isort:
# name: Isorting
# needs: [ changes ]
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ['3.10']
# current_package: ${{ fromJson(inputs.packages) }}
# steps:
# - 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: ${{ steps.has_change.outputs.has_change != 'false' }}
# uses: ./.github/actions/isort
# with:
# python-version: ${{ matrix.python-version }}
# current_package: ${{ matrix.current_package }}
# black:
# name: Black
# needs: [ changes ]
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ['3.10']
# current_package: ${{ fromJson(inputs.packages) }}
# steps:
# - 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: ${{ steps.has_change.outputs.has_change != 'false' }}
# uses: ./.github/actions/black
# with:
# python-version: ${{ matrix.python-version }}
# current_package: ${{ matrix.current_package }}
changes:
name: changes
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.changes.outputs.packages }}
steps:
- uses: actions/checkout@v4
- id: changes
uses: ./.github/actions/changes
lint:
name: Linting
needs: [ changes ]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
current_package: ${{ fromJson(inputs.packages) }}
steps:
- 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: ${{ steps.has_change.outputs.has_change != 'false' }}
uses: ./.github/actions/linting
with:
python-version: ${{ matrix.python-version }}
current_package: ${{ matrix.current_package }}
isort:
name: Isorting
needs: [ changes ]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
current_package: ${{ fromJson(inputs.packages) }}
steps:
- 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: ${{ steps.has_change.outputs.has_change != 'false' }}
uses: ./.github/actions/isort
with:
python-version: ${{ matrix.python-version }}
current_package: ${{ matrix.current_package }}
black:
name: Black
needs: [ changes ]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
current_package: ${{ fromJson(inputs.packages) }}
steps:
- 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: ${{ steps.has_change.outputs.has_change != 'false' }}
uses: ./.github/actions/black
with:
python-version: ${{ matrix.python-version }}
current_package: ${{ matrix.current_package }}
test:
name: Test
# needs: [isort, lint, black]
needs: [isort, lint, black]
runs-on: ubuntu-latest
strategy:
matrix:
# python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.10' ]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
current_package: ${{ fromJson(inputs.packages) }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 4646863

Please sign in to comment.