Proto reworked #23
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: Python Test | |
on: | |
pull_request: | |
branches: [ master ] | |
push: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11.1 | |
# we need to build the package for generating the _version.py file that isn't checked in | |
- name: Install dependencies and build package | |
run: | | |
python -m pip install --upgrade pip build wheel | |
python -m pip install -r requirements.txt | |
python -m build --sdist --wheel --outdir dist | |
- name: Install dependencies | |
run: pip install pytest pytest-md pytest-emoji | |
- name: Run pytest | |
uses: pavelzw/pytest-action@v2 | |
with: | |
verbose: true | |
emoji: true | |
job-summary: false | |
click-to-expand: true | |
report-title: 'Test Report' | |