mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-08-31 15:09:32 +02:00
added config flow test and workflow for tests
This commit is contained in:
parent
f17fefb5d8
commit
1dd4f52524
10 changed files with 1706 additions and 5 deletions
22
.github/generate_requirements.py
vendored
Normal file
22
.github/generate_requirements.py
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
import configparser
|
||||
|
||||
|
||||
def main():
|
||||
parser = configparser.ConfigParser()
|
||||
parser.read("Pipfile")
|
||||
|
||||
packages = "packages"
|
||||
with open("requirements.txt", "w") as f:
|
||||
for key in parser[packages]:
|
||||
value = parser[packages][key]
|
||||
f.write(key + value.replace('"', "") + "\n")
|
||||
|
||||
devpackages = "dev-packages"
|
||||
with open("requirements_tests.txt", "w") as f:
|
||||
for key in parser[devpackages]:
|
||||
value = parser[devpackages][key]
|
||||
f.write(key + value.replace('"', "") + "\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Loading…
Add table
Add a link
Reference in a new issue