Skip to content

Commit

Permalink
Modif main.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Oct 12, 2023
1 parent 0021089 commit 93a2d8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ jobs:
- name: Publish distribution 📦 to PyPI if Release
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_USER }}
password: ${{ secrets.PYPI_PASSWORD }}
skip_existing: true

- name: Publish distribution 📦 to Test PyPI if Push
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.TEST_PYPI_USER }}
password: ${{ secrets.TEST_PYPI_PASSWORD }}
Expand Down
2 changes: 2 additions & 0 deletions premise/inventory_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,10 @@ def load_inventory(self, path):

if path.suffix == ".xlsx":
return ExcelImporter(path)

elif path.suffix == ".csv":
return CSVImporter(path)

else:
raise ValueError(
"Incorrect filetype for inventories." "Should be either .xlsx or .csv"
Expand Down

0 comments on commit 93a2d8e

Please sign in to comment.