Skip to content

fixed test.yml and testing success #23

fixed test.yml and testing success

fixed test.yml and testing success #23

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: run-tests
env:
TESTING: true
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12.4"
- name: Setup Python Virtual Environment
run: python -m venv python3-virtualenv
- name: Install Dependencies
run: python3-virtualenv/bin/pip install -r requirements.txt
- name: Run Tests
run: ./run_test.sh
deploy-trigger:
runs-on: ubuntu-latest
needs: run-tests

Check failure on line 37 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Run Tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 37, Col: 16): Job 'deploy-trigger' depends on unknown job 'run-tests'.
steps:
- name: Trigger Deploy Workflow
uses: actions/github-script@v6
with:
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: "deploy.yml",
ref: context.ref,
inputs: {
tests_failed: ${{ job.status == 'failure' }}
}
})