generated from freelawproject/new-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
808 additions
and
907 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,13 +12,13 @@ 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 | ||
|
@@ -28,7 +28,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 }}-${{ hashFiles('**/poetry.lock')}} | ||
|
@@ -47,10 +47,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,20 +61,20 @@ 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: 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')}} | ||
|
@@ -95,7 +95,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,13 +9,13 @@ 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.12" | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected].3 | ||
uses: snok/[email protected].4 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
@@ -25,7 +25,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 }}-${{ hashFiles('**/poetry.lock') }}-v2021-09-23 | ||
|
@@ -52,7 +52,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@4.5.0 | ||
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,17 +14,17 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.8", "3.9", "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 | ||
|
@@ -34,7 +34,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 }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} | ||
|
Oops, something went wrong.