Skip to content

Commit

Permalink
fix: full e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Zipitria <[email protected]>
  • Loading branch information
fzipi committed Jan 13, 2025
1 parent b8df425 commit e17dcbe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: "Run tests for ${{ matrix.crs-version }}"
- name: Install dependencies
run: |
curl -SLs https://github.com/coreruleset/coreruleset/releases/download/v${{ matrix.crs-version }}/coreruleset-${{ matrix.crs-version }}-minimal.tar.gz -o - | tar xzvf - --strip-components=1 --wildcards "*/rules/*" --wildcards "*/crs-setup.conf.example"
uv sync --all-extras --dev
- name: "Run unit tests"
run: |
uv run pytest -vs
uv run crs-linter --output=github -r crs-setup.conf.example -r rules/*.conf -t util/APPROVED_TAGS -v ${{ matrix.crs-version }}
- name: "Run crs linter tests for ${{ matrix.crs-version }}"
run: |
curl -SLs https://github.com/coreruleset/coreruleset/archive/refs/tags/v{{ matrix.crs-version }}.tar.gz -o - | \
tar xzvf - --strip-components=1 --wildcards "*/rules/*" --wildcards "*/crs-setup.conf.example" --wildcards "*/util/APPROVED_TAGS"
uv run crs-linter --output=github -r crs-setup.conf.example -r rules/*.conf -t util/APPROVED_TAGS -v ${{ matrix.crs-version }}
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ description = "CRS linter"
authors = [
{name = "Ervin Hegedus", email = "[email protected]"}
]
requires-python = ">=3.9"
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/coreruleset/crs-linter"
repository = "https://github.com/coreruleset/crs-linter"
documentation = "https://github.com/coreruleset/crs-linter"
requires-python = ">=3.9"
Issues = "https://github.com/coreruleset/crs-linter/issues"
Homepage = "https://github.com/coreruleset/crs-linter"
Repository = "https://github.com/coreruleset/crs-linter.git"

keywords = ["owasp", "crs", "linter"]
keywords = ["OWASP", "CRS", "linter"]

classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]

Expand Down

0 comments on commit e17dcbe

Please sign in to comment.