Skip to content

Update MyFantasyLeague for playoff weeks (#117) #51

Update MyFantasyLeague for playoff weeks (#117)

Update MyFantasyLeague for playoff weeks (#117) #51

Workflow file for this run

name: unit tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
manual:
description: "Trigger the workflow manually"
required: false
permissions:
contents: read
jobs:
build:
name: unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get current required Python version
id: get-python-versions
run: |
MINIMUM_VERSION=$(grep -oP '__version_minimum_python__ = "\K.*(?=")' leeger/_version.py)
echo "CURRENT_VERSION=$MINIMUM_VERSION" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ env.CURRENT_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
make deps
- name: Run unit tests
run: |
make test