Skip to content

Commit

Permalink
Merge pull request #114 from swimlane/6_1_1
Browse files Browse the repository at this point in the history
6.1.1
  • Loading branch information
MSAdministrator authored Jun 16, 2022
2 parents 454d4b2 + e3cce58 commit 8ec14ea
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 143 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pip==22.1.2
nox==2022.1.7
nox-poetry==1.0.0
poetry==1.1.13
virtualenv==20.14.1
31 changes: 0 additions & 31 deletions .github/workflows/macos.yml

This file was deleted.

62 changes: 38 additions & 24 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,70 @@
name: Push
name: Quality Check
on: [push]

jobs:
test:
code-quality:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8"]
poetry-version: [1.1.13]
python-version: ["3.7"]
poetry-version: ["1.2.0b2"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run coverage run -m pytest && poetry run coverage report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
code-quality:
run: |
poetry run pip install --upgrade pip
poetry install
- name: Run black
run: poetry run black ./pyattck --line-length 120
- name: Run isort
run: poetry run isort ./pyattck --check-only --profile "black"
- name: Run flake8
run: poetry run flake8 ./pyattck
- name: Run bandit
run: poetry run bandit ./pyattck
- name: Run saftey
run: poetry run safety check --ignore=47794
test:
needs: code-quality
strategy:
fail-fast: false
matrix:
python-version: [3.9]
poetry-version: [1.1.2]
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
poetry-version: ["1.2.0b2"]
os: [ubuntu-latest,macos-latest,windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Run black
run: poetry run black ./pyattck --line-length 120
- name: Run isort
run: poetry run isort ./pyattck --check-only --profile "black"
- name: Run flake8
run: poetry run flake8 ./pyattck
- name: Run bandit
run: poetry run bandit ./pyattck
- name: Run saftey
run: poetry run safety check --ignore=47794
run: |
poetry run pip install --upgrade pip
poetry run pip install --upgrade setuptools
poetry install
- name: Run tests
run: poetry run coverage run -m pytest && poetry run coverage report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
32 changes: 0 additions & 32 deletions .github/workflows/ubuntu.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/windows.yml

This file was deleted.

36 changes: 18 additions & 18 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyattck/utils/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version_info__ = (6, 1, 0)
__version_info__ = (6, 1, 1)
__version__ = ".".join(map(str, __version_info__))
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
[tool.poetry]
name = "pyattck"
version = "6.1.0"
version = "6.1.1"
description = "A Python package to interact with the Mitre ATT&CK Frameworks"
authors = ["Swimlane <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/swimlane/pyattck"
repository = "https://github.com/swimlane/pyattck"

[tool.poetry.dependencies]
python = "^3.7"
requests = "^2.27.1"
fire = "^0.4.0"
attrs = "^21.4.0"
pyattck-data = "^2.3.0"
pyattck-data = "^2.4.0"

[tool.poetry.dev-dependencies]
pytest = "^7.1.2"
Expand All @@ -23,6 +26,7 @@ flake8 = "^4.0.1"
bandit = "^1.7.4"
safety = "^1.10.3"
Sphinx = "<4.4.0"
importlib-metadata = "<3.4"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ requests
PyYaml>=5.4.1
fire==0.3.1
attrs==21.4.0
pyattck-data>=2.1.1
pyattck-data>=2.4.0

0 comments on commit 8ec14ea

Please sign in to comment.