Skip to content

Commit

Permalink
update code-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
Limmen committed Nov 11, 2023
1 parent 0ca9ef8 commit 3693c4b
Show file tree
Hide file tree
Showing 19 changed files with 61 additions and 18 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/python-csle-attacker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ jobs:
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Tox tests csle-attacker
run: cd simulation-system/libs/csle-attacker; tox
run: cd simulation-system/libs/csle-attacker; tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: simulation-system/libs/csle-attacker/coverage.yml
7 changes: 6 additions & 1 deletion .github/workflows/python-csle-common-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ jobs:
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Tox tests csle-common
run: cd simulation-system/libs/csle-common; tox
run: cd simulation-system/libs/csle-common; tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: simulation-system/libs/csle-agents/coverage.yml
7 changes: 6 additions & 1 deletion .github/workflows/python-csle-defender-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ jobs:
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Tox tests csle-defender
run: cd simulation-system/libs/csle-defender; tox
run: cd simulation-system/libs/csle-defender; tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: simulation-system/libs/csle-defender/coverage.yml
7 changes: 6 additions & 1 deletion .github/workflows/python-csle-ryu-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ jobs:
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Tox tests csle-ryu
run: cd simulation-system/libs/csle-ryu; tox
run: cd simulation-system/libs/csle-ryu; tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: simulation-system/libs/csle-ryu/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ jobs:
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Tox tests csle-system-identification
run: cd simulation-system/libs/csle-system-identification; tox
run: cd simulation-system/libs/csle-system-identification; tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: simulation-system/libs/csle-system-identification/coverage.yml
7 changes: 6 additions & 1 deletion .github/workflows/python-csle-tolerance-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ jobs:
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Tox tests csle-tolerance
run: cd simulation-system/libs/csle-tolerance; tox
run: cd simulation-system/libs/csle-tolerance; tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: simulation-system/libs/csle-tolerance/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ jobs:
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Tox tests gym-csle-intrusion-response-game
run: cd simulation-system/libs/gym-csle-intrusion-response-game; tox
run: cd simulation-system/libs/gym-csle-intrusion-response-game; tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: simulation-system/libs/gym-csle-intrusion-response-game/coverage.yml
7 changes: 6 additions & 1 deletion .github/workflows/python-gym-csle-stopping-game-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ jobs:
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Tox tests gym-csle-stopping-game
run: cd simulation-system/libs/gym-csle-stopping-game; tox
run: cd simulation-system/libs/gym-csle-stopping-game; tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: simulation-system/libs/gym-csle-stopping-game/coverage.yml
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<a href="https://pypi.org/user/Limmen/">
<img src="https://img.shields.io/pypi/dm/csle-collector" alt="PyPi downloads">
</a>
<a href="https://codecov.io/gh/Limmen/csle" >
<img src="https://codecov.io/gh/Limmen/csle/graph/badge.svg?token=YOV2SEDZWF"/>
</a>
</p>

# The Cyber Security Learning Environment (CSLE)
Expand Down
2 changes: 1 addition & 1 deletion simulation-system/libs/csle-attacker/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setenv =
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov-report xml:coverage.xml --cov=csle_attacker

[testenv:flake8]
basepython = python3.8
Expand Down
2 changes: 1 addition & 1 deletion simulation-system/libs/csle-cluster/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setenv =
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov-report xml:coverage.xml --cov=csle_cluster

[testenv:flake8]
basepython = python3.8
Expand Down
2 changes: 1 addition & 1 deletion simulation-system/libs/csle-common/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setenv =
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov-report xml:coverage.xml --cov=csle_common

[testenv:flake8]
basepython = python3.8
Expand Down
2 changes: 1 addition & 1 deletion simulation-system/libs/csle-defender/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setenv =
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov-report xml:coverage.xml --cov=csle_defender

[testenv:flake8]
basepython = python3.8
Expand Down
2 changes: 1 addition & 1 deletion simulation-system/libs/csle-rest-api/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setenv =
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov-report xml:coverage.xml --cov=csle_rest_api

[testenv:flake8]
basepython = python3.8
Expand Down
2 changes: 1 addition & 1 deletion simulation-system/libs/csle-ryu/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setenv =
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov-report xml:coverage.xml --cov=csle_ryu

[testenv:flake8]
basepython = python3.8
Expand Down
2 changes: 1 addition & 1 deletion simulation-system/libs/csle-system-identification/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setenv =
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov-report xml:coverage.xml --cov=csle_system_identification

[testenv:flake8]
basepython = python3.8
Expand Down
2 changes: 1 addition & 1 deletion simulation-system/libs/csle-tolerance/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setenv =
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov-report xml:coverage.xml --cov=csle_tolerance

[testenv:flake8]
basepython = python3.8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setenv =
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov-report xml:coverage.xml --cov=gym_csle_intrusion_response_game

[testenv:flake8]
basepython = python3.8
Expand Down
2 changes: 1 addition & 1 deletion simulation-system/libs/gym-csle-stopping-game/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ setenv =
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov-report xml:coverage.xml --cov=gym_csle_stopping_game

[testenv:flake8]
basepython = python3.8
Expand Down

0 comments on commit 3693c4b

Please sign in to comment.