Skip to content

Commit

Permalink
Create python-app.yml
Browse files Browse the repository at this point in the history
Added a new workflow to run the unit tests.

Note: unit tests are not complete, but the workflow in place should assist with future pushes.
  • Loading branch information
barbacbd authored Feb 19, 2024
1 parent e56292a commit fb40929
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
push:
branches: [ master ]
pull_request:
types:
- opened
- edited

jobs:
systems-tests:
runs-on: ${{ matrix.os }}
name: ${{matrix.os}}-${{matrix.python-version}}
strategy:
max-parallel: 1
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Local install
run: |
python -m pip install . --upgrade
- name: Install Test Deps
run: |
python -m pip install -e .[tests]
- name: Tests
run: |
pytest --cov=tests

0 comments on commit fb40929

Please sign in to comment.