Skip to content

feat(local files): Added local folder files #43

feat(local files): Added local folder files

feat(local files): Added local folder files #43

Workflow file for this run

name: files
on:
push:
paths:
- "**"
- ".github/workflows/files.yml"
defaults:
run:
working-directory: ./
permissions:
id-token: write
contents: read
jobs:
lint:
name: Lint
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- run: pip install -e .[dev]
- run: python -m ruff .
- run: python -m mypy --strict .
test:
name: Unit tests
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::654654529166:role/numerous-files-test
role-session-name: GitHub_to_AWS_via_FederatedOIDC
aws-region: eu-north-1
- name: Debug Session Info
run: aws sts get-caller-identity
- name: run tests
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- run: pip install -e .[dev]
- run: coverage run -m pytest -vv tests/
env:
NUMEROUS_FILES_AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }}
NUMEROUS_FILES_AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- run: coverage report | grep 'TOTAL' | awk '{print "COVERAGE_PCT=" $4}' >> $GITHUB_ENV
# TODO: publish coverage report