Skip to content

Merge pull request #6 from nonnontrivial/feature/improved-tests #96

Merge pull request #6 from nonnontrivial/feature/improved-tests

Merge pull request #6 from nonnontrivial/feature/improved-tests #96

Workflow file for this run

# 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: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.12]
package-dir:
- api
- pp
- pc
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
run: |
cd ${{ matrix.package-dir }}
python -m pip install --upgrade pip
pip install -r requirements.txt && pip install -r requirements-test.txt
- name: Test with pytest
run: |
cd ${{ matrix.package-dir }}
python -m pytest