Check DVC GitHub Action #1021
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
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}}" |