Skip to content

Commit 7aea46e

Browse files
linux runs
1 parent 6438222 commit 7aea46e

3 files changed

Lines changed: 104 additions & 16 deletions

File tree

.github/workflows/github-actions.yml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,44 @@
11
name: Continous integration
22
on: [push]
33
jobs:
4-
Run-tests:
5-
#runs-on: ubuntu-latest
6-
#runs-on: ubuntu-22.04
7-
runs-on: ubuntu-20.04
4+
Run-308:
5+
runs-on: ubuntu-latest
86
steps:
97
- uses: actions/checkout@v3
108
- name: Set up Python
119
uses: actions/setup-python@v4
1210
with:
13-
#python-version: '3.9'
14-
#python-version: '3.12'
1511
python-version: '3.8'
1612
env:
1713
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
18-
- name: Install
19-
run: |
20-
pip install --upgrade pip
21-
pip install -r requirements.txt
22-
- name: Run tests
14+
- name: Run notebook
2315
run: |
24-
cd src; nose2 --with-coverage pySubnetSB_tests
25-
coverage-badge -o coverage.svg
26-
cd ..
27-
- name: Install package
16+
python scripts/make_example_script.py
17+
ipython examples/api_basics.py
18+
Run-310:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: '3.10'
26+
env:
27+
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
28+
- name: Run notebook
2829
run: |
29-
pip install pySubnetSB
30+
python scripts/make_example_script.py
31+
ipython examples/api_basics.py
32+
Run-312:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v3
36+
- name: Set up Python
37+
uses: actions/setup-python@v4
38+
with:
39+
python-version: '3.12'
40+
env:
41+
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
3042
- name: Run notebook
3143
run: |
3244
python scripts/make_example_script.py
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Continous integration
2+
on: [push]
3+
jobs:
4+
Run-308:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- name: Set up Python
9+
uses: actions/setup-python@v4
10+
with:
11+
python-version: '3.8'
12+
env:
13+
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
14+
- name: Run notebook
15+
run: |
16+
python scripts/make_example_script.py
17+
ipython examples/api_basics.py
18+
Run-310:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: '3.10'
26+
env:
27+
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
28+
- name: Run notebook
29+
run: |
30+
python scripts/make_example_script.py
31+
ipython examples/api_basics.py
32+
Run-312:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v3
36+
- name: Set up Python
37+
uses: actions/setup-python@v4
38+
with:
39+
python-version: '3.12'
40+
env:
41+
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
42+
- name: Run notebook
43+
run: |
44+
python scripts/make_example_script.py
45+
ipython examples/api_basics.py
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Continous integration
2+
on: [push]
3+
jobs:
4+
Run-tests:
5+
#runs-on: ubuntu-latest
6+
runs-on: windows-latest # Changed from ubuntu-latest to windows-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- name: Set up Python 3.9
10+
uses: actions/setup-python@v4
11+
with:
12+
python-version: '3.9'
13+
env:
14+
#AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
15+
AGENT_TOOLSDIRECTORY: C:\hostedtoolcache\ # Updated path for Windows
16+
- name: Install
17+
run: |
18+
pip install --upgrade pip
19+
pip install -r requirements.txt
20+
- name: Run tests
21+
run: |
22+
cd src; nose2 --with-coverage pySubnetSB_tests
23+
coverage-badge -o coverage.svg
24+
cd ..
25+
- name: Install package
26+
run: |
27+
pip install pySubnetSB
28+
- name: Run notebook
29+
run: |
30+
python scripts/make_example_script.py
31+
ipython examples/api_basics.py

0 commit comments

Comments
 (0)