mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-05-06 20:33:58 +00:00
* Bump astral-sh/setup-uv from 5 to 6 Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 5 to 6. - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/v5...v6) --- updated-dependencies: - dependency-name: astral-sh/setup-uv dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * uv run pytest --ignore=web_programming/fetch_anime_and_play.py --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
on:
|
|
pull_request:
|
|
# Run only if a file is changed within the project_euler directory and related files
|
|
paths:
|
|
- "project_euler/**"
|
|
- ".github/workflows/project_euler.yml"
|
|
- "scripts/validate_solutions.py"
|
|
schedule:
|
|
- cron: "0 0 * * *" # Run everyday
|
|
|
|
name: "Project Euler"
|
|
|
|
jobs:
|
|
project-euler:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v6
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.x
|
|
- run: uv sync --group=euler-validate --group=test
|
|
- run: uv run pytest --doctest-modules --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
|
|
validate-solutions:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v6
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.x
|
|
- run: uv sync --group=euler-validate --group=test
|
|
- run: uv run pytest scripts/validate_solutions.py
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|