Skip to content

ci(triggers): add concurrency groups to prevent duplicate runs #716

ci(triggers): add concurrency groups to prevent duplicate runs

ci(triggers): add concurrency groups to prevent duplicate runs #716

Workflow file for this run

name: pymake requests
on:
schedule:
- cron: '0 7 * * *' # run at 7 AM UTC every day
push:
paths-ignore:
- 'README.md'
- 'docs/*.md'
pull_request:
branches:
- master
- develop
paths-ignore:
- 'README.md'
- 'docs/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pymakeCI-requests:
name: pymake CI requests
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install python packages
run: |
python -m pip install --upgrade pip
pip install ".[test]"
- name: Run pytest
working-directory: ./autotest
run: |
pytest -v -n=auto -m requests --durations=0 --cov=pymake --cov-report=xml
- name: Run scheduled tests
if: ${{ github.event_name == 'schedule' }}
working-directory: ./autotest
run: |
pytest -v -m="schedule" --durations=0 --cov=pymake --cov-report=xml
- name: Print coverage report before upload
working-directory: ./autotest
run: |
coverage report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./autotest/coverage.xml