Skip to content

ODSC-49119. Added tests for check_copyright pre-commit #1

ODSC-49119. Added tests for check_copyright pre-commit

ODSC-49119. Added tests for check_copyright pre-commit #1

name: "Test Check Copyright Pre-Commit"
on:
workflow_dispatch:
pull_request:
paths:
- "pre_commit_scripts/**"
jobs:
test:
name: "Run tests for check copyright pre-commit code"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
python-version: "3.10"

Check failure on line 16 in .github/workflows/test_check_copyright.yml

View workflow run for this annotation

GitHub Actions / Test Check Copyright Pre-Commit

Invalid workflow file

The workflow is not valid. .github/workflows/test_check_copyright.yml (Line: 16, Col: 9): Unexpected value 'python-version'
- shell: bash
run: |
set -x # print commands that are executed
$CONDA/bin/conda init
source /home/runner/.bashrc
pip install pytest
python -m pytest -v -p no:warnings pre_commit_scripts/test_check_copyright.py