From 79b00ce1977a639d068de11c2f24d77710a1dfee Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Fri, 30 Sep 2022 09:16:58 +0200 Subject: [PATCH] ci: split ci for PRs and main --- .github/workflows/release.yml | 31 ------------------- .../workflows/{pytest.yml => test_prs.yml} | 6 ---- 2 files changed, 37 deletions(-) delete mode 100644 .github/workflows/release.yml rename .github/workflows/{pytest.yml => test_prs.yml} (88%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index d3a642e9..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Semantic Release - -on: - push: - branches: - - main - -jobs: - release: - runs-on: ubuntu-latest - concurrency: release - - steps: - # Checkout action is required for token to persist - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - token: ${{ secrets.MB_PERSONAL_ACCESS_TOKEN }} - - - name: Python Semantic Release - uses: relekang/python-semantic-release@v7.32.0 - with: - github_token: ${{ secrets.MB_PERSONAL_ACCESS_TOKEN}} - # Remember to copy the tool.semantic_release section from pyproject.toml - # as well - # To enable pypi, - # 1) Set upload_to_pypi to true in pyproject.toml and - # 2) Set the pypi_token in the repo - # 3) Uncomment the two lines below - # repository_username: __token__ - # repository_password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/pytest.yml b/.github/workflows/test_prs.yml similarity index 88% rename from .github/workflows/pytest.yml rename to .github/workflows/test_prs.yml index a84cbd3b..e12825c7 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/test_prs.yml @@ -1,7 +1,5 @@ name: CI Pytest on: - push: - branches: [ main, dev ] pull_request: branches: [ main, dev ] @@ -23,10 +21,6 @@ jobs: - name: Checkout repo uses: actions/checkout@v3 - ## setup chromedriver for saving Altair plots - - name: setup-chromedriver - uses: nanasess/setup-chromedriver@v1.0.7 - ### Caching - name: Install Poetry uses: snok/install-poetry@v1