From 79b1a5aef55208c7ed44af732299500dac118b3e Mon Sep 17 00:00:00 2001 From: "yuji.suzuki" <124127211+yjszk@users.noreply.github.com> Date: Sat, 27 Apr 2024 16:55:15 +0900 Subject: [PATCH 1/3] Fixed ci for Test sample DMARC reports --- .github/workflows/python-tests.yml | 2 ++ .../report_with_upper_cased_pass.xml | 0 2 files changed, 2 insertions(+) rename samples/{aggregate/invalid => aggregate_invalid}/report_with_upper_cased_pass.xml (100%) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 375414b6..bd950efc 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -28,6 +28,7 @@ jobs: sudo apt-get install apt-transport-https echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list sudo apt-get update && sudo apt-get install elasticsearch + sudo sed -i 's/xpack.security.enabled: true/xpack.security.enabled: false/' /etc/elasticsearch/elasticsearch.yml sudo systemctl restart elasticsearch sudo systemctl --no-pager status elasticsearch - name: Install Python dependencies @@ -48,6 +49,7 @@ jobs: - name: Test sample DMARC reports continue-on-error: true run: | + pip install parsedmarc parsedmarc --debug -c ci.ini samples/aggregate/* parsedmarc --debug -c ci.ini samples/forensic/*" - name: Test building packages diff --git a/samples/aggregate/invalid/report_with_upper_cased_pass.xml b/samples/aggregate_invalid/report_with_upper_cased_pass.xml similarity index 100% rename from samples/aggregate/invalid/report_with_upper_cased_pass.xml rename to samples/aggregate_invalid/report_with_upper_cased_pass.xml From 033f348e2ab57f440289ae3286e97be2e25e555a Mon Sep 17 00:00:00 2001 From: "yuji.suzuki" <124127211+yjszk@users.noreply.github.com> Date: Tue, 30 Apr 2024 11:24:16 +0900 Subject: [PATCH 2/3] pip install local local folder --- .github/workflows/python-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index bd950efc..26ab9b86 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -49,7 +49,7 @@ jobs: - name: Test sample DMARC reports continue-on-error: true run: | - pip install parsedmarc + pip install -e parsedmarc parsedmarc --debug -c ci.ini samples/aggregate/* parsedmarc --debug -c ci.ini samples/forensic/*" - name: Test building packages From 32d706a876f6335f2c0a529bf1d6915c863fd85f Mon Sep 17 00:00:00 2001 From: "yuji.suzuki" <124127211+yjszk@users.noreply.github.com> Date: Tue, 30 Apr 2024 11:29:41 +0900 Subject: [PATCH 3/3] pip install path fix --- .github/workflows/python-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 26ab9b86..c71d1f42 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -49,7 +49,7 @@ jobs: - name: Test sample DMARC reports continue-on-error: true run: | - pip install -e parsedmarc + pip install -e . parsedmarc --debug -c ci.ini samples/aggregate/* parsedmarc --debug -c ci.ini samples/forensic/*" - name: Test building packages