remove build #24
This file contains hidden or 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: server-workflow | ||
on: | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '5 * * * *' | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: Install Pylint | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
- name: Run Pylint on All Files | ||
run: | | ||
echo "Running Pylint on all Python files..." | ||
find . -name "*.py" ! -path "./tests/*" -path "./src/*" -path "./models/*" | xargs pylint || echo "Fix Pylint issues before proceeding." | ||
# build: | ||
# runs-on: ubuntu-22.04 | ||
# needs: lint | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - name: Setup python | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: '3.12' | ||
# - name: Set up virtual environment | ||
# run: python -m venv venv && source venv/bin/activate | ||
# - name: Build | ||
# run: python main.py | ||
tests: | ||
needs: [lint, build] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: Set up virtual environment | ||
run: python -m venv venv && source venv/bin/activate | ||
- name: Run tests | ||
run: python run_tests.py |