-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17f94ad
commit c059c3d
Showing
5 changed files
with
95 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
schema_version: 1 | ||
|
||
context: | ||
name: openfisca-country-template | ||
version: 8.0.0 | ||
|
||
package: | ||
name: ${{ name|lower }} | ||
version: ${{ version }} | ||
|
||
source: | ||
path: .. | ||
|
||
build: | ||
noarch: python | ||
script: pip install . -v | ||
|
||
requirements: | ||
host: | ||
- numpy | ||
- pip | ||
- python | ||
- setuptools >=61.0 | ||
run: | ||
- numpy | ||
- python | ||
- openfisca-core-api >=43 | ||
|
||
tests: | ||
- python: | ||
imports: | ||
- openfisca_country_template | ||
|
||
about: | ||
summary: OpenFisca Rules as Code model for Country-Template. | ||
license: AGPL-3.0 | ||
license_file: LICENSE | ||
|
||
extra: | ||
recipe-maintainers: | ||
- bonjourmauko |
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,9 @@ | ||
numpy: | ||
- "1.24" | ||
- "1.25" | ||
- "1.26" | ||
|
||
python: | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" |
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 |
---|---|---|
|
@@ -4,17 +4,17 @@ on: | |
workflow_call: | ||
|
||
jobs: | ||
build-and-cache: | ||
python-build-and-cache: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9.12 # Patch version must be specified to avoid any cache confusion, since the cache key depends on the full Python version. Any difference in patches between jobs will lead to a cache not found error. | ||
|
||
- name: Cache build | ||
uses: actions/cache@v4 | ||
with: | ||
|
@@ -23,12 +23,35 @@ jobs: | |
restore-keys: | | ||
build-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }} | ||
build-${{ env.pythonLocation }}- | ||
- name: Build package | ||
run: make build | ||
|
||
- name: Cache release | ||
uses: actions/cache@v4 | ||
with: | ||
path: dist | ||
key: release-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ github.sha }} | ||
|
||
conda-build-and-cache: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache build | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/conda-bld | ||
key: build-conda-${{ hashFiles('.conda/recipe.yaml') }}-${{ github.sha }} | ||
restore-keys: | | ||
build-conda-${{ hashFiles('.conda/recipe.yaml') }} | ||
build-conda- | ||
- name: Build conda package | ||
uses: prefix-dev/[email protected] | ||
with: | ||
build-args: --channel openfisca --channel conda-forge --output-dir /tmp/conda-bld | ||
recipe-path: .conda/recipe.yaml | ||
upload-artifact: true |
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