Add first implementation #241
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: Run Tests on py versions | |
| on: [push] | |
| permissions: | |
| actions: read | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Cache Docker layers | |
| uses: actions/cache@v4 | |
| with: | |
| path: /tmp/.buildx-cache | |
| key: ${{ runner.os }}-docker-flask-inputfilter-env-${{ hashFiles('env_configs/env.Dockerfile') }} | |
| restore-keys: | | |
| ${{ runner.os }}-docker-flask-inputfilter-env- | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| driver-opts: image=moby/buildkit:latest | |
| - name: Build flask-inputfilter-env image with cache | |
| run: | | |
| docker buildx build \ | |
| --cache-from=type=local,src=/tmp/.buildx-cache \ | |
| --cache-to=type=local,dest=/tmp/.buildx-cache,mode=max \ | |
| -t flask-inputfilter-env \ | |
| -f env_configs/env.Dockerfile \ | |
| . --load | |
| - name: Run tests in Docker | |
| run: | | |
| set -x # Print commands and their arguments as they are executed. | |
| set -e # Exit immediately if a command exits with a non-zero status. | |
| set -u # Exit immediately if a variable is not defined. | |
| docker run --rm flask-inputfilter-env tox |