Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/gitflow #3911

Merged
merged 19 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ on:
branches:
- develop
- main
types: [opened, synchronize, closed]
push:
branches:
- develop
- main
types: [opened, synchronize, reopened, closed]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -27,11 +23,21 @@ jobs:
python-changes:
name: Check for changes to Python code
runs-on: ubuntu-latest
if: github.event.pull_request.merged != true
outputs:
python-changes: ${{ steps.python-changes.outputs.python-changes }}
steps:
- name: Checkout Code
- name: Checkout
uses: actions/checkout@v1
with:
# Need to fetch more than the last commit so that setuptools-scm can
# create the correct version string. If the number of commits since
# the last release is greater than this, the version still be wrong.
# Increase if necessary.
fetch-depth: 100
# The GitHub token is preserved by default but this job doesn't need
# to be able to push to GitHub.
persist-credentials: false

# Check for changes to Python code to avoid running tests unnecessarily
- name: Check for changes to Python code
Expand All @@ -42,7 +48,7 @@ jobs:
target_branch=$(jq -r .pull_request.base.ref "$GITHUB_EVENT_PATH")

# Check for changes to Python code to avoid running tests unnecessarily
if git diff --name-only origin/$target_branch HEAD | grep -E '\.py$'; then
if git diff --name-only origin/$target_branch HEAD | grep -E "\.py$"; then
echo "python-changes=true" >> $GITHUB_OUTPUT
else
echo "python-changes=false" >> $GITHUB_OUTPUT
Expand Down
3 changes: 3 additions & 0 deletions gitflow.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
print("Hello, World!")

# print another
print("Hello, World!")