Skip to content

Commit

Permalink
Merge pull request #2452 from bagerard/github_actions_improvements
Browse files Browse the repository at this point in the history
improve github actions
  • Loading branch information
bagerard authored Dec 16, 2020
2 parents 700fe80 + 4f6a244 commit fd3699a
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ env:

jobs:
linting:
# Run pre-commit (https://pre-commit.com/)
# which runs pre-configured linter & autoformatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -94,21 +96,10 @@ jobs:
cd docs
make html-readthedocs
irc_notification:
runs-on: ubuntu-latest
needs: [linting, test]
steps:
- uses: rectalogic/notify-irc@v1
if: success()
with:
channel: "irc.freenode.org#mongoengine"
nickname: github-notifier
message: |
Build ${{ job.status }} - ${{ github.actor }} ${{ github.event_name }} ${{ github.event.ref }}
build-n-publish-dummy:
runs-on: ubuntu-latest
needs: [linting, test]
needs: [linting, test, build_doc_dryrun]
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
Expand All @@ -123,15 +114,14 @@ jobs:
# # Although working and recommended, test-pypi has a limit
# # in the size of projects so it's better to avoid publishing
# # until there is a way to garbage collect these dummy releases
# if: github.event_name != 'pull_request'
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.test_pypi_token }}
# repository_url: https://test.pypi.org/legacy/

build-n-publish:
runs-on: ubuntu-latest
needs: [linting, test]
needs: [linting, test, build_doc_dryrun, build-n-publish-dummy]
if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@master
Expand Down

0 comments on commit fd3699a

Please sign in to comment.