Skip to content

Commit

Permalink
Update python/deps/tessts
Browse files Browse the repository at this point in the history
  • Loading branch information
ttys0dev committed Jan 11, 2024
1 parent dd9472c commit 3d67467
Show file tree
Hide file tree
Showing 7 changed files with 808 additions and 907 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
#----------------------------------------------
Expand All @@ -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.
#----------------------------------------------
Expand All @@ -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
Expand All @@ -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') }}
Expand Down Expand Up @@ -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') }}
Expand Down Expand Up @@ -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
#----------------------------------------------
Expand All @@ -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
Expand All @@ -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') }}
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')}}
Expand All @@ -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
Expand All @@ -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')}}
Expand All @@ -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
12 changes: 6 additions & 6 deletions .github/workflows/pdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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') }}
Expand Down
Loading

0 comments on commit 3d67467

Please sign in to comment.