Skip to content

Commit

Permalink
split unit tests and code quality workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
damjankuznar committed Jul 25, 2023
1 parent 0b27974 commit 78566e1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 13 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Code quality
on: [push]
jobs:
unit-tests:
runs-on: ubuntu-latest

permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v2

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Install dependencies
run: poetry install --no-interaction --no-root

- name: Linter
run: poetry run flake8

- name: Code Formatting
run: poetry run black .

- name: Type Check
run: poetry run mypy open_rarity
14 changes: 1 addition & 13 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Formatting and unit tests
name: Unit tests
on: [push]
jobs:
unit-tests:
Expand All @@ -16,17 +16,5 @@ jobs:
with:
python-versions: "3.10,3.11"

- name: Linter
uses: py-actions/flake8@v2

- name: Code Formatting
uses: psf/black@stable

- name: Type Check
run: |
pip install poetry
poetry install
poetry run mypy open_rarity
- name: Unit tests
run: nox

0 comments on commit 78566e1

Please sign in to comment.