diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e64fb6da..c50dfdb7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} diff --git a/premise/inventory_imports.py b/premise/inventory_imports.py index a9310f16..6b21907e 100644 --- a/premise/inventory_imports.py +++ b/premise/inventory_imports.py @@ -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"