Skip to content

Commit

Permalink
ci(gha): added ci/cd actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shinybrar committed Aug 24, 2023
1 parent caa3916 commit 7825971
Show file tree
Hide file tree
Showing 5 changed files with 396 additions and 46 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Continuous Deployment

on:
push:
branches:
- main

jobs:
deployment:
runs-on: ubuntu-latest
steps:
-
name: Create release
id: release-please
uses: google-github-actions/release-please-action@v3
with:
release-type: python
package-name: fitburst
59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI

on:
push:
paths-ignore:
- 'docs/**'
branches: [ main ]
pull_request:
paths-ignore:
- 'docs/**'
branches:
- '**'

jobs:
pre-commit-checks:
runs-on: ubuntu-latest
steps:
-
name: Checkout Repository
uses: actions/checkout@v3
-
name: Install Poetry
run: pipx install poetry
-
name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'poetry'
-
name: Install Dependencies
run: poetry install
-
name: Run Pre-Commit
run: poetry run pre-commit run --all-files --show-diff-on-failure

tests:
needs: pre-commit-checks
runs-on: ubuntu-latest
steps:
-
name: Checkout Repository
uses: actions/checkout@v3
-
name: Install Poetry
run: pipx install poetry
-
name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'poetry'
-
name: Install Dependencies
run: poetry install

- name: Run Tests
run: |
poetry run pytest
45 changes: 0 additions & 45 deletions .github/workflows/tests.yml

This file was deleted.

Loading

0 comments on commit 7825971

Please sign in to comment.