Skip to content

first try to integrate test in Github Actions #1

first try to integrate test in Github Actions

first try to integrate test in Github Actions #1

Workflow file for this run

name: fragments-check
on:
push:
branches:
- test-workflow
jobs:
fragments-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-deth: 0
- uses: actions/setup-python@v3
with:
python-version: '3.x'
cache: 'pip'
- uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: '17'
- name: Launch model tests
run: |
pip install -r .acimov/profile_check/requirements.txt
python .acimov/profile_check/complete-test.py --name=actions --skip-pass
- name: Commit the report
run: |

Check failure on line 27 in .github/workflows/fragments-check.yml

View workflow run for this annotation

GitHub Actions / fragments-check

Invalid workflow file

The workflow is not valid. .github/workflows/fragments-check.yml (Line: 27, Col: 12): Unrecognized named-value: 'context'. Located at position 1 within expression: context.token .github/workflows/fragments-check.yml (Line: 35, Col: 23): Unrecognized named-value: 'context'. Located at position 1 within expression: context.token
git config --global user.email "no-reply@github.com"
git config --global user.name "Github Actions"
git add .acimov/profile_check/output/actions.ttl -f
git commit -m "Provide automatic model test report"
git remote set-url origin https://x-access-token:${{ context.token }}@github.com/${{ context.repository }}
git push
env:
GITHUB_TOKEN: ${{ context.token }}
GITHUB_SERVER_URL: ${{ context.server_url }}
GITHUB_REPOSITORY: ${{ context.repository }}
GITHUB_REF_NAME: ${{ context.branch }}
GITHUB_ACTOR: ${{ context.developper }}