mirror of
https://github.com/The-Swarm-Corporation/AutoHedge.git
synced 2026-10-22 06:49:14 +08:00
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
24 lines
533 B
YAML
24 lines
533 B
YAML
name: Python application test
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python 3.10
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --no-cache-dir --upgrade pip
|
|
pip install pytest
|
|
if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi
|
|
- name: Run tests with pytest
|
|
run: |
|
|
pytest tests/
|