-
Notifications
You must be signed in to change notification settings - Fork 85
76 lines (62 loc) · 1.87 KB
/
_test-conda.yaml
File metadata and controls
76 lines (62 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Test conda package
on:
workflow_call:
inputs:
os:
required: true
type: string
numpy:
required: true
type: string
python:
required: true
type: string
defaults:
run:
shell: bash -l {0}
jobs:
test:
runs-on: ${{ inputs.os }}
name: conda-test-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}
env:
TERM: xterm-256color # To colorize output of make tasks.
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache conda env
uses: actions/cache@v4
with:
path: |
/usr/share/miniconda/envs/openfisca
~/.conda/envs/openfisca
.env.yaml
key: conda-env-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}
- name: Cache conda deps
uses: actions/cache@v4
with:
path: ~/conda_pkgs_dir
key: conda-deps-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}
- name: Cache release
uses: actions/cache@v4
with:
path: ~/conda-rel
key: conda-release-${{ inputs.os }}-np${{ inputs.numpy }}-py${{ inputs.python }}-${{ hashFiles('setup.py') }}-${{ github.sha }}
- name: Update conda & dependencies
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: openfisca
environment-file: .env.yaml
miniforge-version: latest
use-mamba: true
- name: Install packages
run: |
mamba install --channel file:///home/runner/conda-rel \
openfisca-core-dev \
openfisca-country-template \
openfisca-extension-template
- name: Run core tests
run: make test-core
- name: Run country tests
run: make test-country
- name: Run extension tests
run: make test-extension