-
Notifications
You must be signed in to change notification settings - Fork 169
Detection strategies fix #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
45cfa35
fix: leave empty domains/object types out of the changelog markdown
elucchesileon 5e9e62d
feat: add new STIX object types to changelog json objects in tests
elucchesileon c8455d5
fix: various lint fixes
elucchesileon f79f934
fix: remove unused create_mock_args test fixture
elucchesileon e9a6c3e
fix: various lint fixes
elucchesileon 29f1658
fix: add responses as a dev dependency
elucchesileon a461471
feat: change from setuptools to poetry
elucchesileon d90db68
feat: update sphinx copyright date and package version
elucchesileon 8f3cbf2
chore: ruff format
elucchesileon f40438f
chore: update version of drawsvg
jondricek 439f717
chore: update author list
jondricek 6c88920
feat: update github workflow for poetry
elucchesileon 2e1c01a
fix: install poetry for GH actions
elucchesileon 2e93bd8
fix: update poetry.lock for drawsvg update
elucchesileon 9cd66fa
fix: run ruff with poetry in GH actions
elucchesileon 873ae19
docs: update readthedocs config
jondricek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,65 +1,60 @@ | ||
| name: Lint, test, and publish | ||
|
|
||
| on: [push] | ||
| on: push | ||
|
|
||
| jobs: | ||
| lint-test: | ||
| lint-format: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install poetry | ||
| run: pipx install poetry | ||
|
|
||
| - name: Set up Python 3.11 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.11" | ||
| cache: "poetry" | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r requirements-dev.txt | ||
| pip install . | ||
| run: poetry install --with=dev | ||
|
|
||
| - name: Lint with flake8 | ||
| run: flake8 mitreattack/ --count --exit-zero --statistics | ||
| - name: Lint with ruff | ||
| run: poetry run ruff check --exit-zero --output-format github | ||
|
|
||
| # should turn these back on once they take less than 10 minutes to run | ||
| # - name: Run pytest | ||
| # run: | | ||
| # cd tests | ||
| # pytest --cov=mitreattack --cov-report html | ||
| - name: Check ruff format | ||
| run: poetry run ruff format --check | ||
|
|
||
| publish: | ||
| needs: lint-test | ||
| needs: lint-format | ||
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
| runs-on: ubuntu-latest | ||
| # required for PyPI Trusted Publisher setup | ||
| # https://docs.pypi.org/trusted-publishers/using-a-publisher/ | ||
| environment: release | ||
| # this permission is required for PyPI Trusted Publisher setup | ||
| # https://docs.pypi.org/trusted-publishers/using-a-publisher/ | ||
| permissions: | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install poetry | ||
| run: pipx install poetry | ||
|
|
||
| - name: Set up Python 3.11 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.11" | ||
| cache: "poetry" | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r requirements-dev.txt | ||
| pip install . | ||
| run: poetry install --with=dev | ||
|
|
||
| - name: Run pytest | ||
| run: | | ||
| cd tests | ||
| pytest --cov=mitreattack --cov-report html | ||
| cd .. | ||
| run: poetry run pytest --cov=mitreattack | ||
|
|
||
| - name: Build package | ||
| run: python setup.py sdist bdist_wheel | ||
| run: poetry build | ||
|
|
||
| - name: Publish package | ||
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
| uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.