Skip to content

Commit

Permalink
roll back .yml to just run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Jack Marden authored and Joshua Jack Marden committed Aug 19, 2024
1 parent de278d7 commit cd16d8a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: CI

on: [push, pull_request]

jobs:
Expand All @@ -21,13 +23,12 @@ jobs:
pip install --upgrade pip # Upgrade pip within the virtual environment
pip install -r requirements.txt # Install dependencies from requirements.txt
- name: Run tests with coverage
- name: Set up environment
run: |
source venv/bin/activate # Ensure the virtual environment is active
pytest --cov=. --cov-report=xml # Generate coverage report in XML format
source ./add_root_to_path.sh # Run the script to modify PYTHONPATH
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: coverage.xml # Path to your coverage report
token: ${{ secrets.CODECOV_TOKEN }} # Set this in your repository secrets
- name: Run tests
run: |
source venv/bin/activate # Ensure the virtual environment is active
pytest # Run tests directly with pytest

0 comments on commit cd16d8a

Please sign in to comment.