ci: upgrade docker actions to resolve still existing node 20 depreca… #83
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Pytest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Install uv and Set up Python | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.12" | |
| enable-cache: true | |
| - name: Install Dependencies | |
| run: uv sync --group dev | |
| - name: Run Pytest | |
| run: uv run pytest | |
| docker-build-test-cpu: | |
| name: Docker Build Test - CPU | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Build Docker image | |
| run: docker build -f Dockerfile.cpu -t codefinetuner-ci-image-cpu . | |
| docker-build-test-gpu: | |
| name: Docker Build Test - GPU | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Build Docker image | |
| run: docker build -f Dockerfile.gpu -t codefinetuner-ci-image-gpu . |