Skip to content

Check DVC GitHub Action #1002

Check DVC GitHub Action

Check DVC GitHub Action #1002

Workflow file for this run

name: Check DVC GitHub Action
on:
schedule:
- cron: '0 0 * * *' # everyday @ 0000 UTC
pull_request:
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
npm ci
npm run build
git diff --exit-code
check:
defaults:
run:
shell: bash
strategy:
matrix:
system:
- ubuntu-latest
- macos-latest
- windows-latest
version:
- '1.0.1'
- '2.18.1'
runs-on: ${{ matrix.system }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
if: matrix.system == 'windows'
with:
python-version: '3.x'
- run: npm ci
- run: npm run lint
- run: npm run test
- name: local action with ${{ matrix.version }}
uses: ./
with:
version: ${{ matrix.version }}
- name: test DVC specific version
run: |
test "$(dvc --version)" == "${{ matrix.version}}"
- name: local action with defaults
uses: ./
- name: test DVC latest version
run: |
test "$(dvc --version)" != "${{ matrix.version}}"