Skip to content
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

Adapt to dependency management changes in core #50

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 0 additions & 12 deletions .circleci/has-functional-changes.sh

This file was deleted.

26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[Makefile]
indent_size = 4
indent_style = tab

[*.robot]
indent_size = 4
indent_style = tab

[*.{sh,py,pyi,rst,toml}]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[*.{diff,patch}]
trim_trailing_whitespace = false
15 changes: 0 additions & 15 deletions .github/dependabot.yml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/_lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Lint

on: [ workflow_call ]

jobs:
lint:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python: [3.7.9, 3.8.10, 3.9.13]
include:
- os: ubuntu-latest
pip: /opt/hostedtoolcache/Python/
bin: /x64/bin/
lib: /x64/lib/

runs-on: ${{ matrix.os }}
name: lint-${{ matrix.os }}-${{ matrix.python }}
env:
POETRY_VIRTUALENVS_IN_PROJECT: true

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Cache Bin
uses: actions/cache@v3
with:
path: ${{ matrix.pip }}${{ matrix.python }}${{ matrix.bin }}
key: bin-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('Makefile') }}

- name: Cache Lib
uses: actions/cache@v3
with:
path: ${{ matrix.pip }}${{ matrix.python }}${{ matrix.lib }}
key: lib-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('Makefile') }}

- name: Cache Poetry
uses: actions/cache@v3
with:
path: .venv
key: pip-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('poetry.lock') }}

- name: Python setup
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: x64

- name: Install dependencies
run: make install-deps

- name: Install extras
run: make install-xtra

- name: Build dist
run: make build-dst

- name: Install
run: make install-dst

- name: Lint
run: make lint
74 changes: 74 additions & 0 deletions .github/workflows/_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Test

on: [ workflow_call ]

jobs:
test:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: [3.7.9, 3.8.10, 3.9.13]
include:
- os: ubuntu-latest
pip: /opt/hostedtoolcache/Python/
bin: /x64/bin/
lib: /x64/lib/
- os: macos-latest
pip: ~/hostedtoolcache/Python/
bin: /x64/bin/
lib: /x64/lib/
- os: windows-latest
pip: C:\hostedtoolcache\windows\python\
bin: \x64\scripts\
lib: \x64\lib\

runs-on: ${{ matrix.os }}
name: test-${{ matrix.os }}-${{ matrix.python }}
env:
POETRY_VIRTUALENVS_IN_PROJECT: true

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Cache Bin
uses: actions/cache@v3
with:
path: ${{ matrix.pip }}${{ matrix.python }}${{ matrix.bin }}
key: bin-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('Makefile') }}

- name: Cache Lib
uses: actions/cache@v3
with:
path: ${{ matrix.pip }}${{ matrix.python }}${{ matrix.lib }}
key: lib-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('Makefile') }}

- name: Cache Poetry
uses: actions/cache@v3
with:
path: .venv
key: pip-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('poetry.lock') }}

- name: Python setup
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: x64

- name: Install dependencies
run: make install-deps

- name: Install extras
run: make install-xtra

- name: Build dist
run: make build-dst

- name: Install
run: make install-dst

- name: Test
run: make test
66 changes: 66 additions & 0 deletions .github/workflows/_type.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Type

on: [ workflow_call ]

jobs:
type:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python: [3.7.9, 3.8.10, 3.9.13]
include:
- os: ubuntu-latest
pip: /opt/hostedtoolcache/Python/
bin: /x64/bin/
lib: /x64/lib/

runs-on: ${{ matrix.os }}
name: type-${{ matrix.os }}-${{ matrix.python }}
env:
POETRY_VIRTUALENVS_IN_PROJECT: true

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Cache Bin
uses: actions/cache@v3
with:
path: ${{ matrix.pip }}${{ matrix.python }}${{ matrix.bin }}
key: bin-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('Makefile') }}

- name: Cache Lib
uses: actions/cache@v3
with:
path: ${{ matrix.pip }}${{ matrix.python }}${{ matrix.lib }}
key: lib-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('Makefile') }}

- name: Cache Poetry
uses: actions/cache@v3
with:
path: .venv
key: pip-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('poetry.lock') }}

- name: Python setup
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: x64

- name: Install dependencies
run: make install-deps

- name: Install extras
run: make install-xtra

- name: Build dist
run: make build-dst

- name: Install
run: make install-dst

- name: Type
run: make type
66 changes: 66 additions & 0 deletions .github/workflows/_version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Version

on: [ workflow_call ]

jobs:
version:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python: [3.9.13]
include:
- os: ubuntu-latest
pip: /opt/hostedtoolcache/Python/
bin: /x64/bin/
lib: /x64/lib/

runs-on: ${{ matrix.os }}
name: version-${{ matrix.os }}-${{ matrix.python }}
env:
POETRY_VIRTUALENVS_IN_PROJECT: true

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Cache Bin
uses: actions/cache@v3
with:
path: ${{ matrix.pip }}${{ matrix.python }}${{ matrix.bin }}
key: bin-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('Makefile') }}

- name: Cache Lib
uses: actions/cache@v3
with:
path: ${{ matrix.pip }}${{ matrix.python }}${{ matrix.lib }}
key: lib-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('Makefile') }}

- name: Cache Poetry
uses: actions/cache@v3
with:
path: .venv
key: pip-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('poetry.lock') }}

- name: Python setup
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: x64

- name: Install dependencies
run: make install-deps

- name: Version
run: make install-xtra

- name: Build dist
run: make build-dst

- name: Install
run: make install-dst

- name: Type
run: ./src/openfisca_extension_template/tests/test-version.sh
Loading