From b07b23043d05b814c48ed095c770df604328d606 Mon Sep 17 00:00:00 2001 From: Danilo Horta Date: Tue, 18 Jun 2024 13:39:23 +0100 Subject: [PATCH] Remove test-and-deploy GitHub workflow --- .github/workflows/test-and-deploy.yml | 92 --------------------------- 1 file changed, 92 deletions(-) delete mode 100644 .github/workflows/test-and-deploy.yml diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml deleted file mode 100644 index 08a201b..0000000 --- a/.github/workflows/test-and-deploy.yml +++ /dev/null @@ -1,92 +0,0 @@ -name: Test, build, and deploy to PyPI - -on: [push, pull_request] - -jobs: - test: - name: Test on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - python-version: [3.8] - - 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 dependencies - run: | - python -m pip install --upgrade pip - python setup.py build_ext --inplace - pip install . && pip uninstall `python setup.py --name` --yes - pip install flake8 pytest black isort - - - name: Lint - run: | - flake8 . - black --check . - isort --check-only . - - - name: Test - run: pytest . - - build_wheels: - name: Build wheels on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-20.04, windows-2019, macos-10.15] - - steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-python@v2 - name: Install Python - with: - python-version: '3.8' - - - name: Build wheels - uses: pypa/cibuildwheel@v1.11.1.post1 - env: - CIBW_SKIP: "pp27* pp34* pp35* pp36* cp27-* cp34-* cp35-* cp36-*" - - - uses: actions/upload-artifact@v2 - with: - path: ./wheelhouse/*.whl - - build_sdist: - name: Build source distribution - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-python@v2 - name: Install Python - with: - python-version: '3.8' - - - name: Build sdist - run: python setup.py sdist - - - uses: actions/upload-artifact@v2 - with: - path: dist/*.tar.gz - - upload_pypi: - needs: [test, build_wheels, build_sdist] - runs-on: ubuntu-latest - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') - steps: - - uses: actions/download-artifact@v2 - with: - name: artifact - path: dist - - - uses: pypa/gh-action-pypi-publish@v1.4.2 - with: - user: __token__ - password: ${{ secrets.pypi_password }}