Skip to content

Commit 6f4ec2c

Browse files
Revert to dev workflow file
1 parent f0b1cb7 commit 6f4ec2c

2 files changed

Lines changed: 43 additions & 60 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Continous integration
2+
on: [push]
3+
jobs:
4+
Run-tests:
5+
#runs-on: ubuntu-latest
6+
#runs-on: ubuntu-22.04
7+
runs-on: ubuntu-20.04
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Set up Python
11+
uses: actions/setup-python@v4
12+
with:
13+
#python-version: '3.9'
14+
#python-version: '3.12'
15+
python-version: '3.8'
16+
env:
17+
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
18+
- name: Install
19+
run: |
20+
pip install --upgrade pip
21+
pip install -r requirements.txt
22+
- name: Run tests
23+
run: |
24+
cd src; nose2 --with-coverage pySubnetSB_tests
25+
coverage-badge -o coverage.svg
26+
cd ..
27+
- name: Install package
28+
run: |
29+
pip install pySubnetSB
30+
- name: Run notebook
31+
run: |
32+
python scripts/make_example_script.py
33+
ipython examples/api_basics.py
Lines changed: 10 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Continous integration
22
on: [push]
33
jobs:
4-
#
5-
Run-309:
6-
runs-on: macos-latest
4+
Run-tests:
5+
runs-on: ubuntu-20.04
76
steps:
87
- uses: actions/checkout@v3
98
- name: Set up Python
@@ -15,65 +14,16 @@ jobs:
1514
- name: Install
1615
run: |
1716
pip install --upgrade pip
18-
pip install jupyterlab
19-
pip install pySubnetSB
20-
- name: Run script
17+
pip install -r requirements.txt
18+
- name: Run tests
2119
run: |
22-
ipython examples/api_basics.py
23-
#
24-
Run-310:
25-
runs-on: macos-latest
26-
steps:
27-
- uses: actions/checkout@v3
28-
- name: Set up Python
29-
uses: actions/setup-python@v4
30-
with:
31-
python-version: '3.10'
32-
env:
33-
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
34-
- name: Install
20+
cd src; nose2 --with-coverage pySubnetSB_tests
21+
coverage-badge -o coverage.svg
22+
cd ..
23+
- name: Install package
3524
run: |
36-
pip install --upgrade pip
37-
pip install jupyterlab
38-
pip install pySubnetSB
39-
- name: Run script
40-
run: |
41-
ipython examples/api_basics.py
42-
#
43-
Run-311:
44-
runs-on: macos-latest
45-
steps:
46-
- uses: actions/checkout@v3
47-
- name: Set up Python
48-
uses: actions/setup-python@v4
49-
with:
50-
python-version: '3.11'
51-
env:
52-
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
53-
- name: Install
54-
run: |
55-
pip install --upgrade pip
56-
pip install jupyterlab
57-
pip install pySubnetSB
58-
- name: Run script
59-
run: |
60-
ipython examples/api_basics.py
61-
#
62-
Run-312:
63-
runs-on: macos-latest
64-
steps:
65-
- uses: actions/checkout@v3
66-
- name: Set up Python
67-
uses: actions/setup-python@v4
68-
with:
69-
python-version: '3.12'
70-
env:
71-
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
72-
- name: Install
73-
run: |
74-
pip install --upgrade pip
75-
pip install jupyterlab
7625
pip install pySubnetSB
77-
- name: Run script
26+
- name: Run notebook
7827
run: |
28+
python scripts/make_example_script.py
7929
ipython examples/api_basics.py

0 commit comments

Comments
 (0)