mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
29 lines
649 B
YAML
29 lines
649 B
YAML
name: Run unit tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- "**"
|
|
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build test image
|
|
run: docker build -f Dockerfile.test -t model-test .
|
|
|
|
- name: Run tests
|
|
env:
|
|
EPC_AUTH_TOKEN: ${{ secrets.DEV_EPC_AUTH_TOKEN }}
|
|
HUBSPOT_API_KEY: ${{ secrets.HUBSPOT_API_KEY }}
|
|
|
|
run: |
|
|
docker run --rm \
|
|
-e EPC_AUTH_TOKEN=${{ secrets.DEV_EPC_AUTH_TOKEN }} \
|
|
-e HUBSPOT_API_KEY=${{ secrets.HUBSPOT_API_KEY }} \
|
|
model-test pytest
|