Skip to content

Commit

Permalink
complete quality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
exs-whaddadin committed Nov 20, 2023
1 parent e73b19c commit 8702693
Show file tree
Hide file tree
Showing 11 changed files with 198 additions and 75 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/alpha-release-ci-actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Alpha release CI Actions

on:
push:
branches:
- '**'
tags:
- '^[0-9].[0-9]+.[0-9]+-a[0-9]+$'

jobs:
publish-package:
uses: ./.github/workflows/publish-package.yaml
11 changes: 11 additions & 0 deletions .github/workflows/dev-ci-actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Dev CI Actions

on:
pull_request:

jobs:
quality-checks:
uses: ./.github/workflows/quality-typing-checks.yaml
test-run-pinned:
uses: ./.github/workflows/pinned-tests.yaml
needs: [quality-checks]
30 changes: 30 additions & 0 deletions .github/workflows/pinned-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Pinned Tests

on:
workflow_call:

jobs:
tests-pinned:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]

steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Run pinned tests
run: |
pip install nox
nox -s tests_run_pinned-${{ matrix.python-version }}
- name: Test Summary
uses: test-summary/action@v2
with:
paths: "test-reports/${{ matrix.python-version }}/.junitxml.*.xml"
show: "fail"
if: always()
24 changes: 24 additions & 0 deletions .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish package

on:
workflow_call:

jobs:
publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Build package
run: |
pip install nox
nox -s dist_build-3.11
- name: Deploy package
run: |
pip install twine
python -m twine upload -u $EXS_PYPI_USERNAME -p $EXS_PYPI_PASSWORD dist/*
29 changes: 0 additions & 29 deletions .github/workflows/quality-checks.yaml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/quality-typing-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Quality and Typing Checks

on:
workflow_call:

jobs:
quality-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Linting check
run: |
pip install nox
nox -s linting_check-3.11
- name: Formatting check
run: |
pip install nox
nox -s formatting_check-3.11
typing-check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]

steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Typing check
run: |
pip install nox
nox -s typing_check-${{ matrix.python-version }}
18 changes: 18 additions & 0 deletions .github/workflows/release-ci-actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release CI Actions

on:
push:
branches:
- '**'
tags:
- '^[0-9].[0-9]+.[0-9]+$'

jobs:
quality-checks:
uses: ./.github/workflows/quality-typing-checks.yaml
test-run-pinned:
uses: ./.github/workflows/pinned-tests.yaml
needs: [ quality-checks ]
publish-package:
uses: ./.github/workflows/publish-package.yaml
needs: [ test-run-pinned ]
Loading

0 comments on commit 8702693

Please sign in to comment.