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 PyTest Workflow | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.12 | |
- name: Install pytest | |
run: pip install pytest | |
- name: Set PYTHONPATH | |
run: echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
- name: Run pytest | |
run: pytest |