Merge pull request #2 from VishwamAI/update-artifact-actions #11
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: AlgoNNexus | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Install flake8 | |
run: pip install flake8 | |
- name: Run linting | |
run: flake8 . | |
# Tests have been removed as per user request | |
# - name: Run tests | |
# run: | | |
# pip install pytest pytest-cov | |
# pytest --cov=src | |
# - name: Upload coverage results | |
# if: success() | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: coverage-report | |
# path: coverage.xml | |
- name: Debug information | |
run: | | |
echo "Python version:" | |
python --version | |
echo "Pip version:" | |
pip --version | |
echo "Installed packages:" | |
pip list | |
echo "Current directory:" | |
pwd | |
echo "Directory contents:" | |
ls -R |