Skip to content

Commit

Permalink
build: added release and pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
danellecline committed Feb 14, 2024
1 parent 2c98876 commit 1bb6f28
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run pytest

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Install dependencies
run: pip install -r requirements.txt

- name: Run pytest
run: pytest
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: New Release
on:
push:
branches:
- main
jobs:
semantic_release:
runs-on: ubuntu-latest
name: Runs semantic release
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install dependencies
run: npm install commitizen @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/exec @semantic-release/changelog @semantic-release/npm @semantic-release/git
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: 000000000000000
GIT_AUTHOR_NAME: danellecline
GIT_COMMITTER_NAME: danellecline
run: npx semantic-release

0 comments on commit 1bb6f28

Please sign in to comment.