Move app inside an app factory - setup tests #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
strategy: | |
max-parallel: 6 | |
matrix: | |
os: [ ubuntu-latest ] | |
python-version: [ 3.7, 3.8, 3.9, '3.10', '3.11' ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest pytest-cov | |
- name: Run unit tests | |
run: | | |
pip install -r requirements.txt | |
python -m pytest tests/ --cov=FeideUtstyrbase --cov-report=xml | |
- uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml |