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