Skip to content

Bump cryptography from 40.0.2 to 41.0.6 in /image/grai-actions #271

Bump cryptography from 40.0.2 to 41.0.6 in /image/grai-actions

Bump cryptography from 40.0.2 to 41.0.6 in /image/grai-actions #271

Workflow file for this run

on: [pull_request]
name: Actions Unit Tests
env:
py_ver: "3.10"
poetry_ver: "1.2.2"
GITHUB_TOKEN: ${{ github.token }}
working_dir: "image/grai-actions"
jobs:
lint-action:
name: Linting
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.working_dir }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "${{ env.py_ver }}"
- run: pip install black isort
- run: |
black . --check
isort . --profile black --check
test-action:
needs: lint-action
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.working_dir }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "${{ env.py_ver }}"
- uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.3.2"
- run: poetry install
- run: poetry run pytest
- run: poetry run python tests/gh_action_demo_script.py