mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Merge pull request #430 from Hestia-Homes/remote-assessment-api
added new github actions workflow
This commit is contained in:
commit
bee36f65bc
1 changed files with 12 additions and 16 deletions
28
.github/workflows/unit_tests.yml
vendored
28
.github/workflows/unit_tests.yml
vendored
|
|
@ -6,33 +6,29 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# For the moment, we just run with python 3.10
|
|
||||||
# strategy:
|
|
||||||
# matrix:
|
|
||||||
# python-version: [ 3.8, 3.9, 3.10 ]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout code
|
||||||
# - name: Set up Python ${{ matrix.python-version }}
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
# python-version: ${{ matrix.python-version }}
|
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
- name: Install dependencies
|
|
||||||
|
- name: Install tox via Makefile
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
make setup
|
||||||
pip install -r model_data/requirements/requirements.txt
|
|
||||||
- name: Set dev AWS credentials
|
- name: Set dev AWS credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
with:
|
with:
|
||||||
aws-access-key-id: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
aws-access-key-id: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
||||||
aws-secret-access-key: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
||||||
aws-region: eu-west-2
|
aws-region: eu-west-2
|
||||||
- name: Run tests with pytest
|
|
||||||
|
- name: Run tests with tox via Makefile
|
||||||
run: |
|
run: |
|
||||||
pip install -r model_data/requirements/dev.txt
|
make test
|
||||||
pytest
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue