Skip to content

Testing mit-license by @bohm0072 #51

Testing mit-license by @bohm0072

Testing mit-license by @bohm0072 #51

Workflow file for this run

name: GHA CI
run-name: Testing ${{ github.ref_name }} by @${{ github.actor }}
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: '.python-version' # Read python version from a file .python-version
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
- name: Install pre-commit
run: python -m pip install pre-commit
- name: Pre-Commit
run: poetry run pre-commit run --show-diff-on-failure --color=always --all-files
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: '.python-version' # Read python version from a file .python-version
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
- name: Register SSH key(s) for private dependencies
# Make sure the @v0.8.0 matches the current version of the action
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install dependencies
run: poetry install --no-interaction --no-root --without dev
- name: Install project
run: poetry install --no-interaction --only-root
- name: Run tests
run: poetry run pytest