Skip to content

Create github workflow #1

Create github workflow

Create github workflow #1

Workflow file for this run

name: Testing

Check failure on line 1 in .github/workflows/unittest.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/unittest.yml

Invalid workflow file

`pull-request` is not a valid event name
on:
push:
branches: [ "master" ]
pull-request:
branches: [ "master" ]
permissions:
contents: read
jobs:
Unit tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Python 3.10 setup
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Unit testing
run: |
pytest -v