diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml index 47c9044..7859955 100644 --- a/.github/workflows/actions.yaml +++ b/.github/workflows/actions.yaml @@ -4,6 +4,8 @@ on: pull_request: branches: [ master ] workflow_dispatch: +permissions: + contents: read jobs: test: @@ -11,21 +13,21 @@ jobs: strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11"] - + steps: - uses: actions/checkout@v4 - + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install -r requirements-ci.txt - + - name: Run tests run: | coverage run -m unittest @@ -43,4 +45,3 @@ jobs: echo "|--------|---------|" printf "| Total | %.2f%% |\n" "$total" } >> "$GITHUB_STEP_SUMMARY" - \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index ea63012..c44e6b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ attrs==25.3.0 factory_boy==2.11.1 Faker==1.0.5 -requests==2.21.0 +requests==2.32.4 pre-commit==2.9.3