Skip to content

Commit

Permalink
style(lint): format with yamlfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko committed Sep 30, 2024
1 parent 0e23ce0 commit 32dfe8c
Show file tree
Hide file tree
Showing 6 changed files with 323 additions and 291 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
directory: /
schedule:
interval: monthly
labels:
Expand Down
140 changes: 73 additions & 67 deletions .github/workflows/_before.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,79 +24,85 @@ jobs:
runs-on: ${{ inputs.os }}
name: deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}
env:
TERM: xterm-256color # To colorize output of make tasks.
# To colorize output of make tasks.
TERM: xterm-256color

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python }}

- name: Use zstd for faster cache restore (windows)
if: ${{ startsWith(inputs.os, 'windows') }}
shell: cmd
run: echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"

- name: Cache dependencies
id: restore-deps
uses: actions/cache@v3
with:
path: venv
key: deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}
restore-keys: deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-

- name: Install dependencies
run: |
python -m venv venv
${{ inputs.activate_command }}
make install-deps install-dist
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python }}

- name: Use zstd for faster cache restore (windows)
if: ${{ startsWith(inputs.os, 'windows') }}
shell: cmd
run: echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"

- name: Cache dependencies
id: restore-deps
uses: actions/cache@v4
with:
path: venv
key: deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{
hashFiles('setup.py') }}
restore-keys: deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python
}}-

- name: Install dependencies
run: |
python -m venv venv
${{ inputs.activate_command }}
make install-deps install-dist
build:
runs-on: ${{ inputs.os }}
needs: [ deps ]
needs: [deps]
name: build-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}
env:
TERM: xterm-256color # To colorize output of make tasks.
TERM: xterm-256color

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python }}

- name: Use zstd for faster cache restore (windows)
if: ${{ startsWith(inputs.os, 'windows') }}
shell: cmd
run: echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"

- name: Cache dependencies
uses: actions/cache@v3
with:
path: venv
key: deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}

- name: Cache build
uses: actions/cache@v3
with:
path: venv/**/[Oo]pen[Ff]isca*
key: build-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}-${{ github.sha }}
restore-keys: |
build-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}-
build-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-
- name: Cache release
uses: actions/cache@v3
with:
path: dist
key: release-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}-${{ github.sha }}

- name: Build package
run: |
${{ inputs.activate_command }}
make install-test clean build
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python }}

- name: Use zstd for faster cache restore (windows)
if: ${{ startsWith(inputs.os, 'windows') }}
shell: cmd
run: echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"

- name: Cache dependencies
uses: actions/cache@v4
with:
path: venv
key: deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{
hashFiles('setup.py') }}

- name: Cache build
uses: actions/cache@v4
with:
path: venv/**/[Oo]pen[Ff]isca*
key: build-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{
hashFiles('setup.py') }}-${{ github.sha }}
restore-keys: |
build-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}-
build-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-
- name: Cache release
uses: actions/cache@v4
with:
path: dist
key: release-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{
hashFiles('setup.py') }}-${{ github.sha }}

- name: Build package
run: |
${{ inputs.activate_command }}
make install-test clean build
57 changes: 29 additions & 28 deletions .github/workflows/_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,32 @@ jobs:
TERM: xterm-256color # To colorize output of make tasks.

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python }}

- name: Use zstd for faster cache restore (windows)
if: ${{ startsWith(inputs.os, 'windows') }}
shell: cmd
run: echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"

- name: Cache dependencies
uses: actions/cache@v3
with:
path: venv
key: deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}

- name: Lint doc
run: |
${{ inputs.activate_command }}
make clean check-syntax-errors lint-doc
- name: Lint styles
run: |
${{ inputs.activate_command }}
make clean check-syntax-errors check-style
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python }}

- name: Use zstd for faster cache restore (windows)
if: ${{ startsWith(inputs.os, 'windows') }}
shell: cmd
run: echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"

- name: Cache dependencies
uses: actions/cache@v4
with:
path: venv
key: deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{
hashFiles('setup.py') }}

- name: Lint doc
run: |
${{ inputs.activate_command }}
make clean check-syntax-errors lint-doc
- name: Lint styles
run: |
${{ inputs.activate_command }}
make clean check-syntax-errors check-style
72 changes: 37 additions & 35 deletions .github/workflows/_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,45 +28,47 @@ jobs:
TERM: xterm-256color # To colorize output of make tasks.

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python }}

- name: Use zstd for faster cache restore (windows)
if: ${{ startsWith(inputs.os, 'windows') }}
shell: cmd
run: echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"
- name: Use zstd for faster cache restore (windows)
if: ${{ startsWith(inputs.os, 'windows') }}
shell: cmd
run: echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"

- name: Cache dependencies
uses: actions/cache@v3
with:
path: venv
key: deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}
- name: Cache dependencies
uses: actions/cache@v4
with:
path: venv
key: deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{
hashFiles('setup.py') }}

- name: Cache build
uses: actions/cache@v3
with:
path: venv/**/[Oo]pen[Ff]isca*
key: build-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}-${{ github.sha }}
- name: Cache build
uses: actions/cache@v4
with:
path: venv/**/[Oo]pen[Ff]isca*
key: build-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{
hashFiles('setup.py') }}-${{ github.sha }}

- name: Run Openfisca Core tests
run: |
${{ inputs.activate_command }}
make test-core
python -m coveralls --service=github
- name: Run Openfisca Core tests
run: |
${{ inputs.activate_command }}
make test-core
python -m coveralls --service=github
- name: Run Country Template tests
if: ${{ startsWith(inputs.os, 'ubuntu') }}
run: |
${{ inputs.activate_command }}
make test-country
- name: Run Country Template tests
if: ${{ startsWith(inputs.os, 'ubuntu') }}
run: |
${{ inputs.activate_command }}
make test-country
- name: Run Extension Template tests
if: ${{ startsWith(inputs.os, 'ubuntu') }}
run: |
${{ inputs.activate_command }}
make test-extension
- name: Run Extension Template tests
if: ${{ startsWith(inputs.os, 'ubuntu') }}
run: |
${{ inputs.activate_command }}
make test-extension
Loading

0 comments on commit 32dfe8c

Please sign in to comment.