SCHED-715: Change PYTHONPATH #1116
Workflow file for this run
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: Run tests | |
on: push | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
environment: schedule-staging | |
timeout-minutes: 10 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
# Setup Python (faster than using Python container) | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Add $PYTHONPATH | |
run: echo "PYTHONPATH=/home/runner/work/scheduler/scheduler" >> $GITHUB_ENV | |
- name: Generate Report | |
env: | |
REDISCLOUD_URL : ${{ secrets.REDISCLOUD_URL }} | |
run: | | |
coverage run -m pytest | |
coverage xml | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v2 | |