2022-01-29 22:31:27 +01:00
|
|
|
name: test
|
2021-09-30 13:36:00 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
2022-08-01 01:30:23 +02:00
|
|
|
paths:
|
|
|
|
- src/**
|
|
|
|
- tests/**
|
|
|
|
- config/**
|
2022-08-03 10:56:40 +02:00
|
|
|
- setup.py
|
2022-08-01 01:30:23 +02:00
|
|
|
- .github/workflows/test.yml
|
2021-09-30 13:36:00 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
2022-08-01 01:30:23 +02:00
|
|
|
paths:
|
|
|
|
- src/**
|
|
|
|
- tests/**
|
|
|
|
- config/**
|
2022-08-03 10:56:40 +02:00
|
|
|
- setup.py
|
2022-08-01 01:30:23 +02:00
|
|
|
- .github/workflows/test.yml
|
2021-09-30 13:36:00 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2022-08-03 20:50:20 +02:00
|
|
|
name: Run Tests
|
2022-08-03 19:00:37 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-09-30 13:36:00 +02:00
|
|
|
steps:
|
2022-08-03 19:00:37 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-12-15 07:15:49 +01:00
|
|
|
|
2022-08-03 19:25:15 +02:00
|
|
|
- name: Set up Python 3.10
|
2022-08-03 19:00:37 +02:00
|
|
|
uses: actions/setup-python@v4
|
2021-09-30 13:36:00 +02:00
|
|
|
with:
|
2022-08-03 19:25:15 +02:00
|
|
|
python-version: '3.10'
|
2021-12-15 07:15:49 +01:00
|
|
|
|
2022-08-03 19:00:37 +02:00
|
|
|
- name: Install Python Dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pytest
|
2022-08-03 19:20:34 +02:00
|
|
|
pip install --upgrade .
|
2021-12-15 07:15:49 +01:00
|
|
|
|
2022-08-03 19:00:37 +02:00
|
|
|
- name: Test with pytest
|
|
|
|
run: |
|
|
|
|
pytest
|