Skip to content

Commit

Permalink
Merge pull request #8 from OxIonics/mb/SYS-256_use_common_workflow
Browse files Browse the repository at this point in the history
Use new shared workflow for tests
  • Loading branch information
mbirtwell committed Jan 21, 2022
2 parents 891a26f + c31aeb3 commit 40831c5
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,29 @@ name: Test
on: push

jobs:
test:
flake8:
runs-on: self-hosted
container: python:3.8-bullseye
container: ghcr.io/oxionics/poetry:1.6
name: Flake8
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: OxIonics/poetry-preamble@master
with:
INSTALL_ARGS: ${{ inputs.INSTALL_ARGS }}
GHA_TOKEN: ${{ secrets.GHA_TOKEN }}

- name: Install poetry
run: python -m pip install poetry==1.1.12 poethepoet==0.10.0
- name: Flake8
run: $POETRY run flake8 .

- name: Install dependencies
run: poetry install

- name: Check formatting
run: poe fmt-test
black:
runs-on: self-hosted
container: ghcr.io/oxionics/poetry:1.6
name: Formatting check
steps:
- uses: OxIonics/poetry-preamble@master
with:
INSTALL_ARGS: ${{ inputs.INSTALL_ARGS }}
GHA_TOKEN: ${{ secrets.GHA_TOKEN }}

- name: Check syntax
run: poe flake
- name: Black check
run: $POETRY run black --check .

0 comments on commit 40831c5

Please sign in to comment.