File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 22Set 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 )
You can’t perform that action at this time.
0 commit comments