⬆️ Bump anyio from 4.7.0 to 4.8.0 in /backend (#177) #333
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: Backend | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
working-directory: backend | |
jobs: | |
Dependencies: | |
runs-on: ubuntu-latest | |
container: python:3.10.2-slim-bullseye | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
id: cache | |
with: | |
path: /usr/local/lib/python3.10/site-packages | |
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }} | |
restore-keys: | | |
venv-${{ runner.os }}-bullseye-3.10.2-v2 | |
- if: steps.cache.outputs.cache-hit != 'true' | |
run: apt update | |
- if: steps.cache.outputs.cache-hit != 'true' | |
run: apt install -y build-essential libmariadb-dev | |
- if: steps.cache.outputs.cache-hit != 'true' | |
run: pip install -U pip poetry | |
- if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
python -m poetry export --dev --format requirements.txt --output requirements.txt --without-hashes | |
pip install -r requirements.txt | |
Pylint: | |
needs: [Dependencies] | |
runs-on: ubuntu-latest | |
container: python:3.10.2-slim-bullseye | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: /usr/local/lib/python3.10/site-packages | |
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }} | |
- run: python -m pylint src/* | |
Type: | |
needs: [Dependencies] | |
runs-on: ubuntu-latest | |
container: python:3.10.2-slim-bullseye | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: /usr/local/lib/python3.10/site-packages | |
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }} | |
- run: python -m mypy src | |
Test: | |
needs: [Pylint, Type] | |
runs-on: ubuntu-latest | |
container: python:3.10.2-slim-bullseye | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: /usr/local/lib/python3.10/site-packages | |
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }} | |
- run: | | |
python -m coverage run -m pytest | |
python -m coverage xml | |
- run: apt update && apt install -y git | |
- name: Code Coverage | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV }} |