File tree Expand file tree Collapse file tree 2 files changed +40
-21
lines changed Expand file tree Collapse file tree 2 files changed +40
-21
lines changed 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 : build-and-test
5
+
6
+ on :
7
+ push :
8
+ branches : [master]
9
+ pull_request :
10
+ branches : [master]
11
+
12
+ jobs :
13
+ build :
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ os : [ubuntu-latest, windows-latest]
18
+ python-version : ["3.6"]
19
+ defaults :
20
+ run :
21
+ shell : bash
22
+ runs-on : ${{ matrix.os }}
23
+ timeout-minutes : 30
24
+ steps :
25
+ - uses : actions/checkout@v3
26
+ - name : Set up Python ${{ matrix.python-version }}
27
+ uses : actions/setup-python@v3
28
+ with :
29
+ python-version : ${{ matrix.python-version }}
30
+ - name : Install dependencies
31
+ run : |
32
+ pip install cython
33
+ pip install -r requirements.txt
34
+ pip install pytest
35
+ - name : Build
36
+ run : pip setup.py install
37
+ - name : Test with pytest
38
+ run : |
39
+ python -m geatpy --version
40
+ pytest
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments