generated from freelawproject/new-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into issue-135-fix-court-string-matching
- Loading branch information
Showing
13 changed files
with
969 additions
and
976 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -17,12 +17,12 @@ jobs: | |
# check-out repo and set-up python | ||
#---------------------------------------------- | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
python-version: 3.12 | ||
#---------------------------------------------- | ||
# Alert PR to eyecite benchmark test | ||
#---------------------------------------------- | ||
|
@@ -32,9 +32,9 @@ jobs: | |
recreate: true | ||
message: | | ||
Eyecite Benchmarking in progress... | ||
For details, see: https://github.com/freelawproject/eyecite/actions/workflows/benchmark.yml | ||
This message will be updated when the test is completed. | ||
#---------------------------------------------- | ||
|
@@ -43,7 +43,7 @@ jobs: | |
# That we should drop once groups is released for main | ||
#---------------------------------------------- | ||
- name: Install Poetry | ||
uses: snok/[email protected].3 | ||
uses: snok/[email protected].4 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
@@ -52,7 +52,7 @@ jobs: | |
#---------------------------------------------- | ||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | ||
|
@@ -103,14 +103,14 @@ jobs: | |
poetry run python benchmark/benchmark.py --branches ${{ steps.branch1.outputs.hash }} | ||
git stash --include-untracked | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: freelawproject/eyecite | ||
ref: main | ||
|
||
- name: Load cached venv 2 | ||
id: cached-poetry-dependencies2 | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | ||
|
@@ -164,12 +164,12 @@ jobs: | |
# check-out repo and set-up python | ||
#---------------------------------------------- | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Set up python | ||
id: setup-python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
python-version: 3.12 | ||
#---------------------------------------------- | ||
# Alert PR to eyecite benchmark test | ||
#---------------------------------------------- | ||
|
@@ -187,7 +187,7 @@ jobs: | |
# ----- install & configure poetry ----- | ||
#---------------------------------------------- | ||
- name: Install Poetry | ||
uses: snok/[email protected].3 | ||
uses: snok/[email protected].4 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
@@ -197,7 +197,7 @@ jobs: | |
#---------------------------------------------- | ||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | ||
|
This file contains 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 |
---|---|---|
|
@@ -12,26 +12,30 @@ jobs: | |
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2-beta | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
python-version: "3.12" | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected].3 | ||
uses: snok/[email protected].4 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Install hyperscan | ||
run: sudo apt-get install libhyperscan-dev | ||
|
||
- name: Get full Python version | ||
id: full-python-version | ||
run: echo "version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")" >> $GITHUB_OUTPUT | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock')}} | ||
key: venv-${{ runner.os }}-cache-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock')}}-v20210414 | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
@@ -47,10 +51,10 @@ jobs: | |
uses: psf/black@stable | ||
|
||
- name: Run flake8 | ||
uses: py-actions/flake8@v1 | ||
uses: py-actions/flake8@v2 | ||
|
||
- name: isort Import Sorter | ||
uses: isort/isort-action@v0.1.0 | ||
uses: isort/isort-action@v1 | ||
|
||
- name: pylint Error Checker | ||
run: pylint --fail-under 9 -f colorized eyecite | ||
|
@@ -61,23 +65,27 @@ jobs: | |
lint-report: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2-beta | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
python-version: "3.12" | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected].3 | ||
uses: snok/[email protected].4 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Get full Python version | ||
id: full-python-version | ||
run: echo "version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")" >> $GITHUB_OUTPUT | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock')}} | ||
key: venv-${{ runner.os }}-cache-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock')}}-v20210414 | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
@@ -95,7 +103,7 @@ jobs: | |
pylint-json2html -f json -o pylint-report.html | ||
- name: Upload report | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pylint report | ||
path: pylint-report.html |
This file contains 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 |
---|---|---|
|
@@ -9,26 +9,30 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
python-version: "3.11" | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected].3 | ||
uses: snok/[email protected].4 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Install hyperscan | ||
run: sudo apt-get install libhyperscan-dev | ||
|
||
- name: Get full Python version | ||
id: full-python-version | ||
run: echo "version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")" >> $GITHUB_OUTPUT | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-v2021-09-23 | ||
key: venv-${{ runner.os }}-cache-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock')}}-v20210414 | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
@@ -52,7 +56,7 @@ jobs: | |
sed -i 's/AhocorasickTokenizer(.*\]))/AhocorasickTokenizer()/' ./eyecite/index.html | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@4.1.5 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: gh-pages | ||
folder: api_documentation/eyecite |
This file contains 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 |
---|---|---|
|
@@ -7,9 +7,9 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Install Poetry | ||
uses: snok/[email protected].3 | ||
uses: snok/[email protected].4 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
This file contains 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 |
---|---|---|
|
@@ -14,30 +14,34 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected].3 | ||
uses: snok/[email protected].4 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Install hyperscan | ||
run: sudo apt-get install libhyperscan-dev | ||
|
||
- name: Get full Python version | ||
id: full-python-version | ||
run: echo "version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")" >> $GITHUB_OUTPUT | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} | ||
key: venv-${{ runner.os }}-cache-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock')}}-v20210414 | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
This file contains 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.