diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bba1c43..dd4332b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 7f6de92..21294b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,18 +5,18 @@ description = "CRS linter" authors = [ {name = "Ervin Hegedus", email = "airween@gmail.com"} ] +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", ]