summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2020-05-23 09:55:53 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2020-05-23 09:55:53 +0300
commitef20158385ced2b63d316e2e582fb3e79d028a21 (patch)
tree7898c49fe1e492b18a9b44e19266adc1c85fa613 /.github
parentcbb54d9f1cc91793630f856bec67b26297b68b2f (diff)
downloadapscheduler-ef20158385ced2b63d316e2e582fb3e79d028a21.tar.gz
Removed the tagging step and fixed PR handling
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/codeqa-test.yml36
1 files changed, 3 insertions, 33 deletions
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 }}