mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
35 lines
No EOL
601 B
YAML
35 lines
No EOL
601 B
YAML
name: Run unit tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
- "dev"
|
|
- "prod"
|
|
pull_request:
|
|
branches:
|
|
- "**"
|
|
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python 3.11
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install tox via Makefile
|
|
run: |
|
|
make setup
|
|
|
|
- name: Run tests with tox via Makefile
|
|
env:
|
|
EPC_AUTH_TOKEN: ${{ secrets.DEV_EPC_AUTH_TOKEN }}
|
|
run: |
|
|
make test |