-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: cd on dev branch * feat: déplace la CI dans un workflow dédié
- Loading branch information
Showing
2 changed files
with
70 additions
and
30 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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "Continuous Integration" | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
install_python_requirements: | ||
name: Install Python requirements | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
- name: Cache Python dependencies | ||
uses: actions/cache@v3 | ||
id: python-dependencies | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ runner.os }}-python-dependencies-${{ hashFiles('**/requirements.txt') }} | ||
- name: Install dependencies | ||
run: pip install -r requirements.txt | ||
lint_ansible_files: | ||
name: Lint ansible files | ||
runs-on: ubuntu-20.04 | ||
needs: [install_python_requirements] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
- name: Cache Python dependencies | ||
uses: actions/cache@v3 | ||
id: python-dependencies | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ runner.os }}-python-dependencies-${{ hashFiles('**/requirements.txt') }} | ||
- name: Check installed package | ||
run: pip freeze | ||
- name: Run ansible lint | ||
run: ansible-lint --offline |