56 lines (46 loc) · 1.54 KB
/
pygsl-ci.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: PyGSL build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
# Checkout the repository contents
- name: Checkout PyGSL code
uses: actions/checkout@v2
# Setup Python version
- name: Setup Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
# Install dependencies
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install libgsl0-dev libncurses5-dev libreadline6-dev pkg-config
sudo apt-get install python3-all-dev python3-matplotlib python3-numpy python3-scipy
# Install Python dependencies
- name: Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest numpy scipy matplotlib wheel setuptools
python -m pip install pycodestyle
# Static code analysis
#- name: Static code style analysis
# run: |
# python3 -m pycodestyle $GITHUB_WORKSPACE -v --ignore=E241,E501,E303,E714,E713,E714,E252,W503 --exclude=$GITHUB_WORKSPACE/doc,$GITHUB_WORKSPACE/.github
- name: config
run: |
python setup.py config
- name: build
run: |
python setup.py build
- name: install
run: |
python setup.py install
- name: test
run: |
# make sure to move out of the source directory
cd /tmp
python -m pytest -s /home/runner/work/pygsl/pygsl/tests