Skip to content

Update test.yml

Update test.yml #4

Workflow file for this run

name: Python application
on:
push:
branches: [ "testing_ci" ]
pull_request:
branches: [ "testing_ci" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements_tests.txt ]; then pip install -r requirements_tests.txt; fi
- name: Build package
run: python -m build --wheel
- name: Install Package
pip install dist/*
- name: Run tests with pytest
run: pytest test