From b29c117359f7243d648f8a6259fa678ffdcaa0bf Mon Sep 17 00:00:00 2001 From: ziadhany Date: Mon, 11 Sep 2023 18:45:43 +0300 Subject: [PATCH] Stop all github actions Signed-off-by: ziadhany --- .github/workflows/docs.yml | 36 --------- .github/workflows/main.yml | 58 -------------- .github/workflows/pypi-release.yml | 83 --------------------- .github/workflows/test-import-using-nix.yml | 28 ------- .github/workflows/upstream_test.yml | 33 -------- 5 files changed, 238 deletions(-) delete mode 100644 .github/workflows/docs.yml delete mode 100644 .github/workflows/main.yml delete mode 100644 .github/workflows/pypi-release.yml delete mode 100644 .github/workflows/test-import-using-nix.yml delete mode 100644 .github/workflows/upstream_test.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 020cf0172..000000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: generate Documentation - -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-20.04 - - strategy: - max-parallel: 4 - matrix: - python-version: [3.8] - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Give permission to run scripts - run: chmod +x ./docs/scripts/doc8_style_check.sh - - - name: Install Dependencies - working-directory: ./docs - run: pip install -r requirements.txt - - - name: Check Sphinx Documentation build minimally - working-directory: ./docs - run: sphinx-build -b linkcheck -EW source build - - - name: Check for documentation style errors - working-directory: ./docs - run: ./scripts/doc8_style_check.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index bfd4d3fa0..000000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: run tests - -on: [push, pull_request] - -env: - DB_NAME: purl-sync - DB_USER: purl-sync - DB_PASSWORD: purl-sync - -jobs: - build: - runs-on: ubuntu-20.04 - - services: - postgres: - image: postgres:latest - env: - POSTGRES_DB: ${{ env.DB_NAME }} - POSTGRES_USER: ${{ env.DB_USER }} - POSTGRES_PASSWORD: ${{ env.DB_PASSWORD }} - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 5432:5432 - - strategy: - max-parallel: 4 - matrix: - python-version: ["3.8", "3.9", "3.10"] - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: make dev envfile - -# Disable codestyle checks until we have cleaned up the code -# - name: Validate code format -# run: make check - - - name: Run tests - run: make test - env: - GH_TOKEN: 1 - POSTGRES_HOST: localhost - POSTGRES_PORT: 5432 - VULNERABLECODE_DB_NAME: ${{ env.DB_NAME }} - VULNERABLECODE_DB_USER: ${{ env.DB_USER }} - VULNERABLECODE_DB_PASSWORD: ${{ env.DB_PASSWORD }} diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml deleted file mode 100644 index 22315ff0e..000000000 --- a/.github/workflows/pypi-release.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Create library release archives, create a GH release and publish PyPI wheel and sdist on tag in main branch - - -# This is executed automatically on a tag in the main branch - -# Summary of the steps: -# - build wheels and sdist -# - upload wheels and sdist to PyPI -# - create gh-release and upload wheels and dists there -# TODO: smoke test wheels and sdist -# TODO: add changelog to release text body - -# WARNING: this is designed only for packages building as pure Python wheels - -on: - workflow_dispatch: - push: - tags: - - "v*.*.*" - -jobs: - build-pypi-distribs: - name: Build and publish library to PyPI - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@master - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: 3.9 - - - name: Install pypa/build - run: python -m pip install build --user - - - name: Build a binary wheel and a source tarball - run: python -m build --sdist --wheel --outdir dist/ - - - name: Upload built archives - uses: actions/upload-artifact@v3 - with: - name: pypi_archives - path: dist/* - - - create-gh-release: - name: Create GH release - needs: - - build-pypi-distribs - runs-on: ubuntu-20.04 - - steps: - - name: Download built archives - uses: actions/download-artifact@v3 - with: - name: pypi_archives - path: dist - - - name: Create GH release - uses: softprops/action-gh-release@v1 - with: - draft: true - files: dist/* - - - create-pypi-release: - name: Create PyPI release - needs: - - create-gh-release - runs-on: ubuntu-20.04 - - steps: - - name: Download built archives - uses: actions/download-artifact@v3 - with: - name: pypi_archives - path: dist - - - name: Publish to PyPI - if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/test-import-using-nix.yml b/.github/workflows/test-import-using-nix.yml deleted file mode 100644 index e3fc94f7e..000000000 --- a/.github/workflows/test-import-using-nix.yml +++ /dev/null @@ -1,28 +0,0 @@ -on: - workflow_dispatch: # allow manual execution - schedule: - # run daily at 10:00am - - cron: '0 10 * * *' - -jobs: - nix-check-and-import: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - uses: cachix/install-nix-action@v11 - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: true - with: - nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/20.09.tar.gz - install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-3.0pre20201007_5257a25/install - extra_nix_config: | - experimental-features = nix-command flakes - - name: run checks & test import - run: | - cd etc/nix - ./get-latest-pypi-deps-db.sh --in-place - nix --print-build-logs flake check - nix-shell --run ./test-import-using-nix.sh diff --git a/.github/workflows/upstream_test.yml b/.github/workflows/upstream_test.yml deleted file mode 100644 index 26215c387..000000000 --- a/.github/workflows/upstream_test.yml +++ /dev/null @@ -1,33 +0,0 @@ -on: - workflow_dispatch: # allow manual execution - schedule: - # run on every 9 o'clock - - cron: '0 9 * * *' - -jobs: - unit_tests: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Python 3.8.11 - uses: actions/setup-python@v2 - with: - python-version: 3.8.11 - - - name: Install dependencies - run: | - sudo apt-get install -y postgresql python3-dev libpq-dev build-essential - make dev envfile - - - name: Setup database - run: | - sudo systemctl start postgresql - make postgres - - - name: Run upstream tests - run: make webtest - env: - GH_TOKEN: 1