diff --git a/.github/workflows/publish-conda.yml b/.github/workflows/publish-conda.yml index 487e0cf..69fef3b 100644 --- a/.github/workflows/publish-conda.yml +++ b/.github/workflows/publish-conda.yml @@ -1,9 +1,11 @@ name: publish_conda + on: - push: - branches: - # only upload upon MR acceptance. - - main + workflow_run: + workflows: ["Semantic Release"] + types: + - completed + jobs: publish: runs-on: ubuntu-latest diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml new file mode 100644 index 0000000..d8dc5e8 --- /dev/null +++ b/.github/workflows/semantic-release.yml @@ -0,0 +1,38 @@ +name: Semantic Release + +on: + push: + branches: + - main + +jobs: + semantic-release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install python-semantic-release + run: pip install python-semantic-release + + - name: Configure git user + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + - name: Run semantic-release version, changelog, and tag + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + semantic-release version + semantic-release changelog + semantic-release tag + git push --follow-tags diff --git a/.github/workflows/test-pip-install-run-pytest.yml b/.github/workflows/test-pip-install-run-pytest.yml index 181b0af..6575bad 100644 --- a/.github/workflows/test-pip-install-run-pytest.yml +++ b/.github/workflows/test-pip-install-run-pytest.yml @@ -19,6 +19,11 @@ jobs: run: | pip install . + - name: Install and use pylint + run: | + pip install pylint + pylint catalogbuilder --exit-zero + - name: Make sample data run: | which python diff --git a/catalogbuilder/intakebuilder/localcrawler.py b/catalogbuilder/intakebuilder/localcrawler.py index 4002551..7cd3632 100644 --- a/catalogbuilder/intakebuilder/localcrawler.py +++ b/catalogbuilder/intakebuilder/localcrawler.py @@ -6,8 +6,8 @@ import os from . import getinfo import re -import logger -logger = logging.getLogger( +import logging +logger = logging.getLogger(__name__) def crawlLocal(projectdir, dictFilter): '''