From ef20158385ced2b63d316e2e582fb3e79d028a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Sat, 23 May 2020 09:55:53 +0300 Subject: Removed the tagging step and fixed PR handling --- .github/workflows/codeqa-test.yml | 36 +++--------------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) (limited to '.github') diff --git a/.github/workflows/codeqa-test.yml b/.github/workflows/codeqa-test.yml index 72665c9..55c0d23 100644 --- a/.github/workflows/codeqa-test.yml +++ b/.github/workflows/codeqa-test.yml @@ -3,6 +3,8 @@ name: Python codeqa/test on: push: branches: "*" + pull_request: + branches: "*" jobs: flake8: @@ -33,39 +35,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Upgrade setuptools - run: pip install "setuptools >= 40.9" - - name: Install the project - run: "pip install --no-binary=:all: ." - - name: Install test dependencies + - name: Install the project and its dependencies run: pip install .[test] - name: Test with pytest run: pytest - - tag: - runs-on: ubuntu-latest - needs: test - if: github.ref == 'refs/heads/master' - steps: - - uses: actions/checkout@v2 - - uses: agronholm/action-general-autotag@regexnofail - id: create-tag - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - source_file: docs/news.rst - extraction_regex: "\\*\\*(\\d+\\.\\d+\\.\\d+(?:(?:a|b|rc)\\d+)?) " - - name: Set up Python - uses: actions/setup-python@v2 - if: steps.create-tag.outputs.tagname - with: - python-version: 3.7 - - name: Install dependencies - run: | - pip install "setuptools >= 40.9" - pip install . - - name: Create packages - run: python setup.py sdist bdist_wheel - - name: Upload packages - uses: pypa/gh-action-pypi-publish@v1.0.0a0 - with: - password: ${{ secrets.pypi_password }} -- cgit v1.2.1