Testing dem-464-mosaicco-rs by @tnigon #48
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |