Skip to content

Commit

Permalink
Merge branch 'release/v0.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
speedcell4 committed Feb 25, 2024
2 parents 46a3159 + d1906af commit 8c36c99
Show file tree
Hide file tree
Showing 61 changed files with 1,134 additions and 3,309 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: publish package

on:
release:
types: [ created ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
31 changes: 0 additions & 31 deletions .github/workflows/python-publish.yml

This file was deleted.

22 changes: 12 additions & 10 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
name: Unit Tests
name: unit tests

on: [ push ]
on:
workflow_dispatch:
push:
schedule:
- cron: "0 21 * * 6"

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install torch
python -m pip install -e '.[dev]'
python -m pip install pip --upgrade
python -m pip install -r requirements.txt
python -m pip install pytest hypothesis torchnyan
- name: Test with pytest
run: |
python -m pytest tests
python -m pytest tests
Loading

0 comments on commit 8c36c99

Please sign in to comment.