generated from iiasa/scse-workflow-template
-
Notifications
You must be signed in to change notification settings - Fork 29
37 lines (28 loc) · 1001 Bytes
/
validation.yml
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
# This workflow validates that the project is consistent with the nomenclature
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Validate the project
on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]
jobs:
project-validation:
runs-on: ubuntu-latest
strategy:
matrix:
nomenclature:
- "nomenclature-iamc"
- "git+https://github.com/IAMconsortium/nomenclature"
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install requirements
run: pip install ${{ matrix.nomenclature }}
- name: Quickfix for pint https://github.com/hgrecco/pint/issues/1969
run: pip install git+https://github.com/hgrecco/pint.git
- name: Run the nomenclature project validation
run: nomenclature validate-project .