Skip to content

Commit 7c7c553

Browse files
committed
Merge branch 'danielhuppmann-devops/gh-actions' into main
2 parents d7c67cc + ed9cd53 commit 7c7c553

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/pytest.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow installs the requirements and runs the tests
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: pytest
5+
6+
on:
7+
push:
8+
branches: [ '**' ]
9+
pull_request:
10+
branches: [ '**' ]
11+
12+
jobs:
13+
pytest:
14+
strategy:
15+
matrix:
16+
os:
17+
- ubuntu-latest
18+
python-version:
19+
- '3.10'
20+
21+
fail-fast: false
22+
23+
runs-on: ${{ matrix.os }}
24+
name: ${{ matrix.os }} py${{ matrix.python-version }}
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
34+
- name: Install pytest
35+
run: pip install pytest pytest-cov
36+
37+
- name: Install the package
38+
run: pip install .
39+
40+
- name: Test with pytest
41+
run: pytest

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
matplotlib
22
pandas
33
pyam-iamc >= 1.0 # the pyam package is released on pypi under this name
4-
-e git+https://github.com/openENTRANCE/openentrance.git@main#egg=openentrance

0 commit comments

Comments
 (0)