Skip to content

Commit

Permalink
Run CI tests once a week too
Browse files Browse the repository at this point in the history
Restrict scheduled tests and publishing to PyPI to galaxyproject/bioblend
repository.
  • Loading branch information
nsoranzo committed Feb 10, 2021
1 parent ddf701e commit 04c54a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
python3 setup.py sdist bdist_wheel
twine check dist/*
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && github.repository_owner == 'galaxyproject'
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: Tests
on: [push, pull_request]
on:
push:
pull_request:
schedule:
# Run at midnight UTC every Tuesday
- cron: '0 0 * * 2'
jobs:
test:
if: github.event_name != 'schedule' || github.repository_owner == 'galaxyproject'
runs-on: ${{ matrix.os }}
services:
postgres:
Expand Down

0 comments on commit 04c54a8

Please sign in to comment.