Fix api endpoint for list of points #519
Workflow file for this run
This file contains 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: lint | |
on: | |
# trigger when pushed to any branch (for development) | |
push: | |
# trigger when a pull request is made to master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
docker-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
id: imgcache | |
with: | |
path: .docker-lint-img.tar | |
key: v3-${{ hashFiles('.github/workflows/lint.Dockerfile', 'requirements_testing.txt', 'requirements.txt') }} | |
# we stop here if the docker image was found in a cache | |
- uses: actions/cache@v3 | |
with: | |
path: .docker-lint-cache | |
key: v3-${{ hashFiles('.github/workflows/lint.Dockerfile', 'requirements_testing.txt', 'requirements.txt') }} | |
if: steps.imgcache.outputs.cache-hit != 'true' | |
- uses: docker/setup-buildx-action@v2 | |
if: steps.imgcache.outputs.cache-hit != 'true' | |
- run: docker buildx build -t lintimg --output type=docker,dest=.docker-lint-img.tar --cache-to type=local,dest=.docker-lint-cache3,mode=max --cache-from type=local,src=.docker-lint-cache -f .github/workflows/lint.Dockerfile . | |
if: steps.imgcache.outputs.cache-hit != 'true' | |
- run: rm -rf .docker-lint-cache | true | |
if: steps.imgcache.outputs.cache-hit != 'true' | |
- run: mv .docker-lint-cache3 .docker-lint-cache | |
if: steps.imgcache.outputs.cache-hit != 'true' | |
lint: | |
runs-on: ubuntu-latest | |
needs: docker-build | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: .docker-lint-img.tar | |
key: v3-${{ hashFiles('.github/workflows/lint.Dockerfile', 'requirements_testing.txt', 'requirements.txt') }} | |
- run: docker load -i .docker-lint-img.tar | |
- run: docker run -v ${{ github.workspace }}:/app -w /app lintimg sh -c 'prospector' |