Skip to content

Commit 00702e6

Browse files
committed
Merge branch 'feature/gh_actions_build_test' into feature/path_setup #89
2 parents d01fafc + 3f5f549 commit 00702e6

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python package
5+
6+
on: [push, pull_request]
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ['3.7', '3.8']
15+
16+
steps:
17+
- name: Checkout MSC
18+
uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Checkout chun_codes
24+
uses: actions/checkout@v2
25+
with:
26+
repository: astrochun/chun_codes
27+
path: chun_codes
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
python -m pip install pytest pytest-cov
32+
- name: Install MSC
33+
run: |
34+
python setup.py install
35+
- name: Install chun_codes
36+
run: |
37+
python setup.py install
38+
working-directory: chun_codes
39+
- name: Test with pytest
40+
run: |
41+
pytest --cov-report term-missing --cov=Metallicity_Stack_Commons tests

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Set of common codes used in metallicity studies that use the stacking techniques
33

44
[![Build Status](https://travis-ci.com/astrochun/Metallicity_Stack_Commons.svg?branch=master)](https://travis-ci.com/astrochun/Metallicity_Stack_Commons)
5+
6+
[![GitHub build](https://github.com/astrochun/Metallicity_Stack_Commons/workflows/Python%20package/badge.svg?branch=feature/gh_actions_build_test)](https://github.com/astrochun/Metallicity_Stack_Commons/actions?query=workflow%3A%22Python+package%22)
57
![GitHub top language](https://img.shields.io/github/languages/top/astrochun/Metallicity_Stack_Commons)
68
![GitHub release (latest by date)](https://img.shields.io/github/v/release/astrochun/Metallicity_Stack_Commons)
79
![GitHub](https://img.shields.io/github/license/astrochun/Metallicity_Stack_Commons?color=blue)

0 commit comments

Comments
 (0)