-
Notifications
You must be signed in to change notification settings - Fork 5
Utiliser les composite actions pour la CI/CD + diverses améliorations #1980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fabienheureux
wants to merge
11
commits into
main
Choose a base branch
from
improve-ci-cd
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c2d599a
Use composite actions for ci / cd
fabienheureux b0530d8
backport changes
fabienheureux 199f6c1
Backport changes
fabienheureux 2fe412c
Remove backend test dependency
fabienheureux 1ff73be
Move files
fabienheureux 307df59
WIP
fabienheureux 520aec9
Rename paths
fabienheureux 62c924d
Remove poetry mentions
fabienheureux ba7ba80
WIP
fabienheureux 4b006f6
add flag input
4b1f5e4
Merge branch 'main' into improve-ci-cd
fabienheureux File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Build Parcel Assets | ||
description: Build Parcel assets | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/setup-node@v5 | ||
shell: bash | ||
with: | ||
node-version-file: ".tool-versions" | ||
cache: "npm" | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: npm ci | ||
|
||
- uses: actions/cache@v4 | ||
name: Cache Parcel build | ||
id: parcel-cache | ||
with: | ||
path: | | ||
static/compiled | ||
.parcel-cache | ||
key: parcel-${{ runner.os }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('static/to_compile/**/*.css', 'static/to_compile/**/*.ts') }} | ||
restore-keys: | | ||
parcel-${{ runner.os }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('static/to_compile/**/*.css', 'static/to_compile/**/*.ts') }} | ||
parcel-${{ runner.os }}-${{ hashFiles('package-lock.json') }}- | ||
parcel-${{ runner.os }}- | ||
|
||
- name: Build assets if cache missed | ||
shell: bash | ||
if: steps.parcel-cache.outputs.cache-hit != 'true' | ||
run: npm run build |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Install GDAL | ||
description: Install GDAL | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cache apt packages | ||
id: apt-cache | ||
uses: awalsh128/cache-apt-pkgs-action@9f7a885e33ff6f8166b600e3e74a981ec11b92c3 | ||
with: | ||
packages: gdal-bin | ||
|
||
# Install the package(s) | ||
- name: Install packages | ||
shell: bash | ||
run: | | ||
if [ "${{ steps.apt-cache.outputs.cache-hit }}" != "true" ]; then | ||
|
||
sudo apt-get update -qq | ||
fi | ||
sudo apt-get install -y gdal-bin |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Install Python dependencies | ||
description: Install Python dependencies | ||
|
||
inputs: | ||
flags: | ||
description: "Flag to pass to uv sync command" | ||
required: false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-python@v6 | ||
with: | ||
cache: "pip" | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 | ||
- uses: actions/cache@v4 | ||
name: Define a cache for the virtual environment based on the dependencies lock file | ||
with: | ||
path: ./.venv | ||
key: venv-dev-airflow-${{ hashFiles('uv.lock') }} | ||
- name: Install the project dependencies | ||
run: uv sync $FLAGS | ||
shell: bash | ||
env: | ||
FLAGS: ${{ inputs.flags }} |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.