From 98ab81cb16cc4466ac1de2f3d085c62f541875a7 Mon Sep 17 00:00:00 2001 From: Can Ergen Date: Fri, 15 Dec 2023 11:12:49 -0800 Subject: [PATCH] Delete duplicate workflows. --- .github/workflows/build.yaml | 29 -------------- .github/workflows/release.yaml | 29 -------------- .github/workflows/test.yaml | 69 ---------------------------------- 3 files changed, 127 deletions(-) delete mode 100644 .github/workflows/build.yaml delete mode 100644 .github/workflows/release.yaml delete mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 265a95e..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: Check Build - -on: - push: - branches: [main] - pull_request: - branches: [main] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - package: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 - with: - python-version: "3.10" - cache: "pip" - cache-dependency-path: "**/pyproject.toml" - - name: Install build dependencies - run: python -m pip install --upgrade pip wheel twine build - - name: Build package - run: python -m build - - name: Check package - run: twine check --strict dist/*.whl diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index bd82eb5..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: Release - -on: - release: - types: [published] - -# Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/ -jobs: - release: - name: Upload release to PyPI - runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/p/{{ cookiecutter.package_name }} - permissions: - id-token: write # IMPORTANT: this permission is mandatory for trusted publishing - steps: - - uses: actions/checkout@v4 - with: - filter: blob:none - fetch-depth: 0 - - uses: actions/setup-python@v4 - with: - python-version: "3.x" - cache: "pip" - - run: pip install build - - run: python -m build - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml deleted file mode 100644 index ad084e4..0000000 --- a/.github/workflows/test.yaml +++ /dev/null @@ -1,69 +0,0 @@ -name: Test - -on: - push: - branches: [main] - pull_request: - branches: [main] - schedule: - - cron: "0 5 1,15 * *" - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - test: - runs-on: ${{ matrix.os }} - defaults: - run: - shell: bash -e {0} # -e to fail on error - - strategy: - fail-fast: false - matrix: - include: - - os: ubuntu-latest - python: "3.9" - - os: ubuntu-latest - python: "3.10" - - os: ubuntu-latest - python: "3.11" - - os: ubuntu-latest - python: "3.11" - pip-flags: "--pre" - name: PRE-RELEASE DEPENDENCIES - - name: ${{ matrix.name }} Python ${{ matrix.python }} - - env: - OS: ${{ matrix.os }} - PYTHON: ${{ matrix.python }} - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python }} - cache: "pip" - cache-dependency-path: "**/pyproject.toml" - - - name: Install test dependencies - run: | - python -m pip install --upgrade pip wheel - - name: Install dependencies - run: | - pip install ${{ matrix.pip-flags }} ".[dev,test]" - - name: Test - env: - MPLBACKEND: agg - PLATFORM: ${{ matrix.os }} - DISPLAY: :42 - run: | - coverage run -m pytest -v --color=yes - - name: Report coverage - run: | - coverage report - - name: Upload coverage - uses: codecov/codecov-action@v3