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