-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
------------------ * [fix] dependencies * [feat] actions
- Loading branch information
1 parent
3a82cb4
commit cb7b261
Showing
5 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Run tests on push event | ||
on: | ||
push: | ||
# triggered by a push event on the following branches | ||
branches: | ||
- main | ||
# triggered by a tag that starts with "v" | ||
tags: | ||
- v* | ||
# triggered by any pull requests | ||
pull_request: ~ | ||
|
||
jobs: | ||
run_tests: | ||
runs-on: "ubuntu-20.04" | ||
steps: | ||
# checkout the code from the following branch | ||
- uses: actions/checkout@main | ||
# set up the Python 3.8 x64 environment on the virtual machine | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
architecture: x64 | ||
- name: Install requirements | ||
run: pip install -r requirements.txt | ||
- name: Run tests | ||
run: pytest -v -m "not developing" tests | ||
# - name: Tests report | ||
# run: coverage report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "fortigate_api" | ||
version = "1.2.1" | ||
version = "1.2.2" | ||
authors = [ | ||
{ name="Vladimir Prusakov", email="[email protected]" }, | ||
] | ||
|
@@ -9,9 +9,9 @@ readme = "README.rst" | |
license = { text="MIT" } | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"requests == 2.28.*", | ||
"netmiko == 4.1.*", | ||
"ciscoconfparse == 1.7.*", | ||
"requests >= 2.28", | ||
"netmiko >= 4.1", | ||
"ciscoconfparse >= 1.7", | ||
] | ||
keywords = ["fortigate", "api", "fortios", "firewall", "networking", "telecommunication"] | ||
classifiers = [ | ||
|
@@ -31,7 +31,7 @@ classifiers = [ | |
"Homepage" = "https://github.com/vladimirs-git/fortigate-api" | ||
"Repository" = "https://github.com/vladimirs-git/fortigate-api" | ||
"Bug Tracker" = "https://github.com/vladimirs-git/fortigate-api/issues" | ||
"Download URL" = "https://github.com/vladimirs-git/fortigate-api/archive/refs/tags/1.2.1.tar.gz" | ||
"Download URL" = "https://github.com/vladimirs-git/fortigate-api/archive/refs/tags/1.2.2.tar.gz" | ||
[tool.setuptools.packages.find] | ||
include = ["fortigate_api"] | ||
[tool.setuptools.package-data] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"""Tests.""" | ||
"""Tests.""" |