File: check_python_test.yml

package info (click to toggle)
bluebrain-hpc-coding-conventions 1.0.0%2Bgit20221201-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 624 kB
  • sloc: python: 2,021; cpp: 220; makefile: 29
file content (17 lines) | stat: -rw-r--r-- 560 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
name: check-python-test
on: [pull_request, push]

jobs:
  build:
    name: check-python-test
    runs-on: ubuntu-20.04
    # Run on external PRs, but not internal PRs as they'll be run by the push
    if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

    steps:
        - name: Fetch repository
          uses: actions/checkout@v3
        - name: Install packages
          run: sudo apt-get update && sudo apt-get install python3-pytest
        - name: Check Python UT
          run: pytest-3 --capture=no