Skip PRs entirely if any workflow is still running #422
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test fetching tinuous' logs | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| extra: | |
| - base | |
| - datalad | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install tinuous and coverage | |
| run: | | |
| python -m pip install --upgrade pip wheel | |
| python -m pip install coverage | |
| python -m pip install . | |
| - name: Install datalad and git-annex | |
| if: matrix.extra == 'datalad' | |
| run: | | |
| python -m pip install git-annex datalad | |
| - name: Checkout con/tinuous-inception | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: con/tinuous-inception | |
| path: tinuous-inception | |
| - name: Configure datalad | |
| if: matrix.extra == 'datalad' | |
| run: | | |
| git config --global user.email "tinuous@nil" | |
| git config --global user.name "Tinuous Tester" | |
| sed -i -e 's:{year}/{month}/{day}:{year}//{month}//{day}:' tinuous.yaml | |
| echo "datalad:" >> tinuous.yaml | |
| echo " enabled: true" >> tinuous.yaml | |
| echo " cfg_proc: text2git" >> tinuous.yaml | |
| working-directory: tinuous-inception | |
| - name: Run tinuous on tinuous | |
| run: coverage run --source tinuous --branch -m tinuous fetch | |
| working-directory: tinuous-inception | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TRAVIS_TOKEN: ${{ secrets.TRAVIS_TOKEN }} | |
| APPVEYOR_TOKEN: ${{ secrets.APPVEYOR_TOKEN }} | |
| CIRCLECI_CLI_TOKEN: ${{ secrets.CIRCLECI_CLI_TOKEN }} | |
| PYTHONWARNINGS: error | |
| - name: Coverage report | |
| run: | | |
| coverage report --precision 2 --show-missing | |
| coverage xml | |
| working-directory: tinuous-inception | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: tinuous-inception/coverage.xml | |
| fail_ci_if_error: false | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| name: ${{ matrix.extra }} | |
| # vim:set et sts=2: |