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: Build and Test Python Application | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
LLAMA_API_TOKEN: ${{ secrets.LLAMA_API_TOKEN }} | |
URL: ${{ secrets.URL }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
export PYTHONPATH=/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages | |
- name: Run tests | |
run: | | |
python -m unittest discover tests | |
- name: Python Linter | |
uses: sunnysid3up/python-linter@master | |
with: | |
source: "prank_line_crafter/" | |
mypy-options: "--ignore-missing-imports --show-error-codes" | |
pylint-options: "--rcfile=.pylintrc" | |
isort-options: "-w 100" | |