From 5e3133adcc8efa3a33cee37f9fedcb769e50423a Mon Sep 17 00:00:00 2001 From: Jorge Rivera Date: Sun, 10 Nov 2024 11:37:14 +0100 Subject: [PATCH] remove actions --- .github/workflows/CI.yaml | 45 -------------------- .github/workflows/documentation.yaml | 27 ------------ .github/workflows/release.yaml | 63 ---------------------------- 3 files changed, 135 deletions(-) delete mode 100644 .github/workflows/CI.yaml delete mode 100644 .github/workflows/documentation.yaml delete mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml deleted file mode 100644 index 608dc28..0000000 --- a/.github/workflows/CI.yaml +++ /dev/null @@ -1,45 +0,0 @@ -name: CI - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - strategy: - fail-fast: false - matrix: - python-version: [ "3.10" ] - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Install Poetry - run: | - pip install poetry - poetry --version - - name: Install packages - run: | - poetry install - - name: Check formatting - run: | - make check-formatting - - name: Tests - run: | - make report-coverage - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - fail_ci_if_error: true - verbose: true \ No newline at end of file diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml deleted file mode 100644 index 0043f60..0000000 --- a/.github/workflows/documentation.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# Build documentation -name: documentation - -on: - workflow_dispatch: - -jobs: - documentation: - runs-on: ubuntu-latest - name: Build documentation - steps: - - uses: actions/checkout@v2 - - - name: Set up Python 3.10 - uses: actions/setup-python@v2 - with: - python-version: "3.10" - - - name: Install poetry - run: | - python -m pip install --upgrade pip - pip install poetry - - name: Install package - run: poetry install - - - name: Build documentation - run: poetry run make html --directory docs/ \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 0b3ddd5..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,63 +0,0 @@ -name: release - -on: - push: - tags: - - 'v*' - workflow_dispatch: - -jobs: - - release: - name: Create Release - runs-on: ubuntu-latest - - strategy: - matrix: - python-versions: [ "3.10" ] - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - - name: Get version from tag - id: tag_name - run: | - echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} - shell: bash - - name: Get version from tag (new) - run: echo "{current_version}={${GITHUB_REF#refs/tags/v}}" >> $GITHUB_OUTPUT - - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-versions }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install poetry - poetry install - - name: Build wheels and source tarball - run: >- - poetry build - - name: show temporary files - run: >- - ls -l - - name: create github release - id: create_release - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - files: dist/*.whl - draft: false - prerelease: false - - - name: publish to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} - skip_existing: true - verify_metadata: true - verbose: true \ No newline at end of file