Skip to content

Add test with encrypted file #19

Add test with encrypted file

Add test with encrypted file #19

Workflow file for this run

name: Poetry CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: abatilo/actions-poetry@v2
- run: poetry install
- run: poetry run ruff format .
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: abatilo/actions-poetry@v2
- run: poetry install
- run: poetry run ruff check --fix .
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: abatilo/actions-poetry@v2
- run: poetry install
- run: poetry run pyright .
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: abatilo/actions-poetry@v2
- run: sudo apt-get update
- run: sudo apt-get install git-crypt
- env:
GIT_CRYPT_KEY: ${{ secrets.GIT_CRYPT_KEY }}
run: echo "$GIT_CRYPT_KEY" | base64 -d > ./git-crypt.key
- run: cat ./git-crypt.key
- run: git-crypt unlock ./git-crypt.key
- run: poetry install
- run: poetry run pytest