Skip to content

Commit

Permalink
fix GH action module lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzming committed Mar 14, 2024
1 parent 1773de2 commit b39c68c
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,39 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Cache Poetry virtualenv and dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/pypoetry/virtualenvs
**/poetry.lock
key: ${{ runner.os }}-poetry-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
cd ragstack/colbertbase
poetry install
- name: Lint with flake8
run: |
cd ragstack/colbertbase
poetry run flake8 ./colbertbase
- name: Test with pytest
run: |
cd ragstack/colbertbase
poetry run pytest
- uses: actions/checkout@v2

- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Cache Poetry virtualenv and dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/pypoetry/virtualenvs
**/poetry.lock
key: ${{ runner.os }}-poetry-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
cd ragstack/colbertbase
poetry install
- name: Lint with flake8
run: |
cd ragstack/colbertbase
poetry run flake8 ./colbertbase
- name: Test with pytest
run: |
cd ragstack/colbertbase
poetry run pytest

0 comments on commit b39c68c

Please sign in to comment.