From e801d1316f290c660375a53e06814a8a9ba57ca4 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 15 May 2025 16:30:34 +0100 Subject: [PATCH] added new github actions workflow --- .github/workflows/unit_tests.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 22b13ab2..9d5c9563 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -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