From 8eb6d420b906331baf983b639926d74281189ac5 Mon Sep 17 00:00:00 2001 From: danellecline Date: Tue, 5 Mar 2024 15:14:32 -0800 Subject: [PATCH] test: revised PYTHONPATH and switch to codfish semantic release --- .github/workflows/pytest.yml | 2 +- .github/workflows/release.yml | 28 +++++++++++++--------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 2d2e604..c5e4934 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -24,7 +24,7 @@ jobs: run: pip install -r requirements.txt - name: Set PYTHONPATH to subdirectory sdcat - run: echo "PYTHONPATH=sdcat" >> $GITHUB_ENV + run: echo "PYTHONPATH=." >> $GITHUB_ENV - name: Run pytest run: pytest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e86ab6b..7820b1b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,20 +8,18 @@ jobs: runs-on: ubuntu-latest name: Runs semantic release steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + + - uses: codfish/semantic-release-action@v3.1.0 + id: semantic with: - fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: "lts/*" - - name: Install dependencies - run: npm install commitizen @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/exec @semantic-release/changelog @semantic-release/npm @semantic-release/git - - name: Release + dry-run: false + branches: | + ['main'] + additional-packages: | + ['@semantic-release/git'] + plugins: | + ['@semantic-release/git', '@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', '@semantic-release/github', '@semantic-release/git'] env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: 000000000000000 - GIT_AUTHOR_NAME: danellecline - GIT_COMMITTER_NAME: danellecline - run: npx semantic-release \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: 000000000000000 \ No newline at end of file