Skip to content

fix: better security #51

fix: better security

fix: better security #51

Workflow file for this run

name: git-remote-s3
on:
push:
branches:
- "*"
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
build:
name: Test and build application with poetry and pytest
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ github.token }}
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
- name: Update PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Update Poetry configuration
run: poetry config virtualenvs.create false
- name: Install dependencies
run: poetry install --sync --no-interaction
- name: Run tests
run: poetry run pytest
- name: Package project
run: poetry build