Skip to content

Commit

Permalink
ci: Only run workflows once. Fix indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Apr 2, 2021
1 parent d742a96 commit 916275e
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/ci.yml
Expand Up @@ -4,26 +4,27 @@ env:
BASEDIR: https://raw.githubusercontent.com/open-contracting/standard-maintenance-scripts/main
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.6
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: curl -s -S --retry 3 $BASEDIR/tests/install.sh | bash -
- run: pip install -r requirements_dev.txt
- run: curl -s -S --retry 3 $BASEDIR/tests/script.sh | bash -
- run: STANDARD_MAINTENANCE_SCRIPTS_IGNORE=scrapyd,scrapyd-client pytest /tmp/test_requirements.py
- run: shasum -c requirements.txt.sha256
# Specify tests/ directory to avoid "ModuleNotFoundError: No module named 'sphinx_rtd_theme'" from docs/conf.py.
- run: pytest --cov kingfisher_scrapy tests
if: always()
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.6
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: curl -s -S --retry 3 $BASEDIR/tests/install.sh | bash -
- run: pip install -r requirements_dev.txt
- run: curl -s -S --retry 3 $BASEDIR/tests/script.sh | bash -
- run: STANDARD_MAINTENANCE_SCRIPTS_IGNORE=scrapyd,scrapyd-client pytest /tmp/test_requirements.py
- run: shasum -c requirements.txt.sha256
# Specify tests/ directory to avoid "ModuleNotFoundError: No module named 'sphinx_rtd_theme'" from docs/conf.py.
- run: pytest --cov kingfisher_scrapy tests
if: always()
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github

0 comments on commit 916275e

Please sign in to comment.