Skip to content

Merge pull request #15 from PavelChertkov/main #11

Merge pull request #15 from PavelChertkov/main

Merge pull request #15 from PavelChertkov/main #11

Workflow file for this run

name: CI tests
# yamllint disable-line rule:truthy
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize]
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
tests:
name: Run ${{ matrix.type }} tests for python ${{matrix.python}}
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.12]
type: [unit]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/[email protected]
- name: Prepare python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_test.txt
- name: Run ${{ matrix.type }} tests
run: pytest tests/${{ matrix.type }}