Bump fastapi from 0.110.3 to 0.111.1 in /.github/dependabot #459
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: CI Tests | |
permissions: | |
pull-requests: write | |
on: [push, pull_request, workflow_call] | |
jobs: | |
lint-and-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up Python "3.X" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.X" | |
- name: Set up services | |
run: | | |
docker-compose -f dev-env/docker-compose.yaml up -d --remove-orphans | |
- name: Install dependencies | |
run: | | |
python3 -m pip install -e .[dev] | |
working-directory: ./freva-rest | |
- name: Adjusting PATH variable | |
run: echo "~/.local/bin" >> $GITHUB_PATH | |
- name: Starting the local server | |
run: | | |
python -m freva_rest.cli -c api_config.toml --debug --dev & | |
- name: Waiting for 10 sec | |
run: sleep 5 | |
- name: Linting, type checking and docs with tox | |
run: tox run-parallel --parallel-no-spinner | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 5 | |
matrix: | |
python-version: [3.9, "3.10", "3.11", "3.12"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: Set up services | |
run: | | |
docker-compose -f dev-env/docker-compose.yaml up -d --remove-orphans | |
- name: Install dependencies | |
run: | | |
python3 -m pip install -e .[dev] | |
working-directory: ./freva-rest | |
- name: Adjusting PATH variable | |
run: echo "~/.local/bin" >> $GITHUB_PATH | |
- name: Starting the local server | |
run: | | |
python -m freva_rest.cli -c api_config.toml --debug --dev & | |
- name: Waiting for 5 sec | |
run: sleep 5 | |
- name: Run tests | |
run: tox -e test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
build-docker-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up services | |
run: | | |
docker-compose -f dev-env/docker-compose.yaml up -d --remove-orphans | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build freva-storage-service image | |
uses: docker/build-push-action@v4 | |
with: | |
platforms: linux/amd64 | |
push: false | |
load: true | |
tags: freva-rest:latest | |
- name: Check databrowser image | |
run: python3 dev-env/check-container.py | |
dependabot: | |
name: Merge PR by dependabot | |
runs-on: ubuntu-latest | |
needs: [tests, lint-and-docs, build-docker-image] | |
if: github.event.pull_request.user.login == 'dependabot[bot]' | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/fetch-metadata@v1 | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Approve dependabot's PR | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.TOKEN}} | |
- name: Auto-merge for dependabot's PR | |
run: gh pr merge --merge --auto "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.TOKEN}} |