mirror of
https://github.com/The-Swarm-Corporation/AutoHedge.git
synced 2026-10-20 06:29:15 +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>
34 lines
637 B
YAML
34 lines
637 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: Install dependencies
|
|
run: pip install --no-cache-dir -r requirements.txt
|
|
|
|
- name: Run Python unit tests
|
|
run: python3 -m unittest tests/
|
|
|
|
- name: Verify that the Docker image for the action builds
|
|
run: docker build . --file Dockerfile
|
|
|
|
- name: Verify integration test results
|
|
run: python3 -m unittest tests/
|