1+ # .github/workflows/ci.yml
12name : CI / Test & Docker Build
23
34on :
@@ -11,38 +12,35 @@ jobs:
1112 runs-on : ubuntu-latest
1213
1314 steps :
14- # 1. Checkout the code
1515 - name : Checkout repository
1616 uses : actions/checkout@v4
1717
18- # 2. Set up Python 3.10
19- - name : Set up Python
18+ - name : Set up Python 3.10
2019 uses : actions/setup-python@v4
2120 with :
2221 python-version : ' 3.10'
2322
24- # 3. Install Python dependencies, pytest & httpx
25- - name : Install dependencies
23+ - name : Install dependencies, pytest & httpx
2624 run : |
2725 python -m pip install --upgrade pip
2826 pip install --no-cache-dir -r requirements.txt
2927 pip install pytest httpx
3028
31- # 4. Run test suite
29+ - name : Export PYTHONPATH
30+ run : echo "PYTHONPATH=${{ github.workspace }}" >> $GITHUB_ENV
31+
3232 - name : Run pytest
3333 run : pytest --maxfail=1 --disable-warnings -q
3434
35- # 5. Set up Docker Buildx for multi-arch
3635 - name : Set up Docker Buildx
3736 uses : docker/setup-buildx-action@v3
3837
39- # 6. Build and load Docker image
4038 - name : Build and load Docker image
4139 uses : docker/build-push-action@v4
4240 with :
4341 context : .
4442 file : Dockerfile
4543 platforms : linux/amd64,linux/arm64
46- load : true # load into the runner’s Docker daemon
47- push : false # do not push to any registry
44+ load : true
45+ push : false
4846 tags : ffmpeg-api-service:latest
0 commit comments