Merge pull request #16 from Kijewski/pr-codeql-analysis
Create codeql-analysis.yml
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
new file mode 100644
index 0000000..6ba9c57
--- /dev/null
+++ b/.github/workflows/codeql-analysis.yml
@@ -0,0 +1,57 @@
+name: "CodeQL"
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+ schedule:
+ - cron: '41 21 * * 3'
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: [ 'cpp', 'python' ]
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+ with:
+ submodules: true
+
+ - name: Cache pip
+ uses: actions/cache@v2
+ with:
+ key: codeql-analysis--${{ github.event.inputs.os }}--${{ github.event.inputs.python }}--${{ hashFiles('./requirements.txt') }}
+ path: ~/.cache/pip
+
+ - name: Setup python
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ github.event.inputs.python }}
+
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v1
+ with:
+ languages: ${{ matrix.language }}
+
+ - name: Update pip
+ run: python -m pip install -U pip wheel setuptools
+
+ - name: Install requirements
+ run: python -m pip install -Ur requirements.txt
+
+ - name: Compile
+ run: make bdist_wheel
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v1
diff --git a/DerivedGeneralCategory.txt.sha b/DerivedGeneralCategory.txt.sha
index bc3753b..383ab9c 100644
--- a/DerivedGeneralCategory.txt.sha
+++ b/DerivedGeneralCategory.txt.sha
@@ -1 +1 @@
-1e82fa0f0a4cb1d230240edf97a264134681e3da9432c31abec1577744aaacd0a0609511dc12011798bad04ebb2465a30be169cb0879ab1af610533fe4ddc864 DerivedGeneralCategory.txt
+3f2a564c7bb3c555840f6abf8b7d215b8d57085210a983470bcb2269bfb56254797a6aa1777465f2b8b5f09ecd552ecd2f8ce0f4605a78df39612d712218f1d5 DerivedGeneralCategory.txt
diff --git a/Makefile b/Makefile
index db439c7..e99ab0c 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@
FILES := Makefile MANIFEST.in pyjson5.pyx README.rst setup.py ${INCLUDES}
DerivedGeneralCategory.txt: DerivedGeneralCategory.txt.sha
- curl -s -o $@ https://www.unicode.org/Public/14.0.0/ucd/extracted/DerivedGeneralCategory-14.0.0d18.txt
+ curl -s -o $@ https://www.unicode.org/Public/14.0.0/ucd/extracted/DerivedGeneralCategory-14.0.0d19.txt
python sha512sum.py -c $@.sha
src/_unicode_cat_of.hpp: DerivedGeneralCategory.txt make_unicode_categories.py