mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added new github actions workflow
This commit is contained in:
parent
bea5901bc2
commit
e801d1316f
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
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
test:
|
||||
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:
|
||||
- uses: actions/checkout@v2
|
||||
# - name: Set up Python ${{ matrix.python-version }}
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
# python-version: ${{ matrix.python-version }}
|
||||
python-version: '3.10'
|
||||
- name: Install dependencies
|
||||
|
||||
- name: Install tox via Makefile
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r model_data/requirements/requirements.txt
|
||||
make setup
|
||||
|
||||
- name: Set dev AWS credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: eu-west-2
|
||||
- name: Run tests with pytest
|
||||
|
||||
- name: Run tests with tox via Makefile
|
||||
run: |
|
||||
pip install -r model_data/requirements/dev.txt
|
||||
pytest
|
||||
make test
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue