Skip to content

Test linter action

Test linter action #10

name: Check Pull Request
on:
pull_request:
branches:
- workflow
jobs:
# flake8-lint:
# permissions:
# pull-requests: write
# runs-on: ubuntu-latest
# name: Lint
# steps:

Check failure on line 14 in .github/workflows/on-pull-request.yaml

View workflow run for this annotation

GitHub Actions / Check Pull Request

Invalid workflow file

The workflow is not valid. .github/workflows/on-pull-request.yaml (Line: 14, Col: 7): Unexpected value 'pull-request'
# - name: Check out source repository
# uses: actions/checkout@v3
# - name: Set up Python environment
# uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# - name: Run linter and comment PR
# uses: matias-martini/flake8-pr-comments-action@main
# with:
# github_token: ${{ github.token }}
run-tests:
name: Run Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out the source repository
uses: actions/checkout@4
- name: Set up Python
uses: actions/setup-python@5
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: "**/*requirements.txt"
- run: pip install -r requirements.txt -r dev-requirements.txt -r tests/requirements.txt
- name: Get scion-pki
run: |
curl -fsSL -O https://github.com/scionproto/scion/releases/download/v0.12.0/scion_0.12.0_amd64_linux.tar.gz
mkdir bin
tar -C bin -xzf scion_0.12.0_amd64_linux.tar.gz scion-pki
- name: Run tests
run: |
source development.env
export PATH=$PATH:$PWD/bin
tests/run-tests.py
verify-examples:
name: Verify Examples
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out the source repository
uses: actions/checkout@4
- name: Set up Python
uses: actions/setup-python@5
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: "**/*requirements.txt"
- run: pip install -r requirements.txt -r dev-requirements.txt -r tests/requirements.txt
- name: Get scion-pki
run: |
curl -fsSL -O https://github.com/scionproto/scion/releases/download/v0.12.0/scion_0.12.0_amd64_linux.tar.gz
mkdir bin
tar -C bin -xzf scion_0.12.0_amd64_linux.tar.gz scion-pki
- name: Verify Examples
run: tests/test-examples.py