added new github actions workflow

This commit is contained in:
Khalim Conn-Kowlessar 2025-05-15 16:30:34 +01:00
parent bea5901bc2
commit e801d1316f

View file

@ -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