forked from iterative/dvc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use native concurrency (iterative#8320)
- Loading branch information
Showing
2 changed files
with
17 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
name: benchmarks | ||
on: [pull_request, workflow_dispatch] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
bench: | ||
name: run benchmarks | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-18.04] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
python-version: "3.10" | ||
- uses: iterative/dvc-bench@main | ||
with: | ||
pytest_options: "-k 'test_init or test_help'" | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: {} | ||
push: {} | ||
push: | ||
branches: [main] | ||
pull_request: | ||
schedule: | ||
- cron: '5 1 * * *' # every day at 01:05 | ||
workflow_dispatch: | ||
|
||
env: | ||
DVC_TEST: "true" | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
SHELL: /bin/bash | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
@@ -31,7 +33,7 @@ jobs: | |
run: | | ||
pip install --upgrade pip setuptools wheel | ||
pip install collective.checkdocs==0.2 | ||
pip install ".[dev]" pre-commit | ||
pip install ".[dev]" | ||
- name: Check README | ||
run: python setup.py checkdocs | ||
- uses: pre-commit/[email protected] | ||
|
@@ -57,18 +59,8 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.pyv }} | ||
- name: get pip cache dir | ||
id: pip-cache-dir | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: set pip cache | ||
id: pip-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.pip-cache-dir.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
cache: pip | ||
cache-dependency-path: setup.cfg | ||
- name: install | ||
if: steps.cache.pip-cache-dir.cache-hit != 'true' | ||
run: | | ||
|