Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Meow Package publishing action
name: Meow Package Publish action

on:
push:
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Meow Package Testing action

on:
push:
branches:
- Dev


jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- run: echo "Setup project.."
- name: Cloning repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}

- name: Install Hatch
run: pip install hatch

- name: Install twin
run: pip install twine

- name: Run tests
run: hatch run test:pytest

- name: Build package
run: hatch build

- name: Test package
run: twine check dist/*
publish:
runs-on: ubuntu-latest

needs: test

permissions:
id-token: write

steps:
- run: echo "Setup project.."
- name: Cloning repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.12

- name: Install Hatch
run: pip install hatch

- name: Install twin
run: pip install twine

- name: Build package
run: hatch build

- name: Test build using twine
run: twine check dist/*