kopia lustrzana https://github.com/bellingcat/auto-archiver
Add poetry cache clear, and small code change
rodzic
c2821d7c83
commit
8940580638
|
@ -44,6 +44,9 @@ jobs:
|
||||||
~/.cache/pip
|
~/.cache/pip
|
||||||
key: poetry-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
key: poetry-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
||||||
|
|
||||||
|
- name: Clear Poetry PyPI cache
|
||||||
|
run: poetry cache clear pypi --all
|
||||||
|
|
||||||
- name: Install dependencies from source only
|
- name: Install dependencies from source only
|
||||||
run: poetry install --no-interaction --with dev
|
run: poetry install --no-interaction --with dev
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -38,6 +38,9 @@ jobs:
|
||||||
~/.cache/pip
|
~/.cache/pip
|
||||||
key: poetry-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
key: poetry-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
||||||
|
|
||||||
|
- name: Clear Poetry PyPI cache
|
||||||
|
run: poetry cache clear pypi --all
|
||||||
|
|
||||||
- name: Install dependencies from source only
|
- name: Install dependencies from source only
|
||||||
run: poetry install --no-interaction --with dev
|
run: poetry install --no-interaction --with dev
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -88,10 +88,7 @@ class GsheetsFeederDB(Feeder, Database):
|
||||||
if len(self.allow_worksheets) and sheet_name not in self.allow_worksheets:
|
if len(self.allow_worksheets) and sheet_name not in self.allow_worksheets:
|
||||||
# ALLOW rules exist AND sheet name not explicitly allowed
|
# ALLOW rules exist AND sheet name not explicitly allowed
|
||||||
return False
|
return False
|
||||||
if len(self.block_worksheets) and sheet_name in self.block_worksheets:
|
return not (self.block_worksheets and sheet_name in self.block_worksheets)
|
||||||
# BLOCK rules exist AND sheet name is blocked
|
|
||||||
return False
|
|
||||||
return True
|
|
||||||
|
|
||||||
def missing_required_columns(self, gw: GWorksheet) -> list:
|
def missing_required_columns(self, gw: GWorksheet) -> list:
|
||||||
missing = []
|
missing = []
|
||||||
|
|
Ładowanie…
Reference in New Issue