Skip to content

Commit 628ae79

Browse files
committed
Refactor CI
1 parent dc81a40 commit 628ae79

2 files changed

Lines changed: 4 additions & 26 deletions

File tree

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pytest
1+
name: CI
22

33
on:
44
push:
@@ -62,11 +62,7 @@ jobs:
6262
ssh localhost
6363
6464
- name: Install package 📦
65-
run: |
66-
python3 -m pip install --upgrade pip setuptools
67-
python3 -m pip install coveralls
68-
python3 -m pip install -e .
69-
python3 -m pip install -e .[pytest]
65+
run: python3 -m pip install -e .[pytest]
7066

7167
- name: Prepare database 🗄️
7268
run: |
@@ -88,22 +84,4 @@ jobs:
8884
echo "ISIMIP_MOCK=${{ matrix.mock }}" >> $GITHUB_ENV
8985
9086
- name: Run pytest 🧪
91-
run: |
92-
pytest --cov=isimip_publisher
93-
coveralls --service=github
94-
env:
95-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96-
COVERALLS_FLAG_NAME: "${{ env.PYTHON_VERSION }}-mock-${{ matrix.mock }}"
97-
COVERALLS_PARALLEL: true
98-
99-
coveralls:
100-
needs: pytest
101-
runs-on: ubuntu-latest
102-
container: python:3-slim
103-
steps:
104-
- name: Run coveralls finish
105-
run: |
106-
pip install coveralls
107-
coveralls --service=github --finish
108-
env:
109-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
run: pytest --cov=isimip_utils --cov-fail-under=90 --cov-report=term-missing

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ISIMIP publisher
33

44
[![Python Version](https://img.shields.io/badge/python->=3.11-blue)](https://www.python.org/)
55
[![License](https://img.shields.io/github/license/ISI-MIP/isimip-publisher?style=flat)](https://github.com/rdmorganiser/isimip-publisher/blob/main/LICENSE)
6-
[![CI status](https://github.com/ISI-MIP/isimip-publisher/actions/workflows/pytest.yml/badge.svg)](https://github.com/ISI-MIP/isimip-publisher/actions/workflows/pytest.yml)
6+
[![CI status](https://github.com/ISI-MIP/isimip-publisher/actions/workflows/ci.yaml/badge.svg)](https://github.com/ISI-MIP/isimip-publisher/actions/workflows/ci.yaml)
77
[![Latest release](https://shields.io/github/v/release/ISI-MIP/isimip-publisher)](https://github.com/ISI-MIP/isimip-publisher/releases)
88

99
A command line tool to publish climate impact data from the ISIMIP project. This tool is used for the [ISIMIP repository](https://data.isimip.org).

0 commit comments

Comments
 (0)