Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: set concurrency #112

Merged
merged 10 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ env:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# cancel all except push to main branch for have always full results
Borda marked this conversation as resolved.
Show resolved Hide resolved
cancel-in-progress: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/main') }}

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
---

name: Tests
name: Tests with Tox

Borda marked this conversation as resolved.
Show resolved Hide resolved
on: [push, pull_request, workflow_dispatch]

env:
FORCE_COLOR: 1

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# cancel all except push to main branch for have always full results
cancel-in-progress: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/main') }}
Borda marked this conversation as resolved.
Show resolved Hide resolved

jobs:
test:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -34,16 +37,13 @@ jobs:

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U wheel
python -m pip install -U tox
pip install -U wheel tox

Borda marked this conversation as resolved.
Show resolved Hide resolved
- name: Download more tests from friend projects
if: matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest'
run: sh download-more-tests.sh
- name: Tox tests
run: |
tox -e py
run: tox -e py

Borda marked this conversation as resolved.
Show resolved Hide resolved
- name: Upload coverage
uses: codecov/codecov-action@v3
Expand Down
Loading