Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed Jan 10, 2024
1 parent b8d5dcb commit e851f83
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 37 deletions.
71 changes: 36 additions & 35 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Wheel build

on:
release:
types: [created]
workflow_dispatch:
# on:
# release:
# types: [created]
# workflow_dispatch:
on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down Expand Up @@ -37,7 +38,7 @@ jobs:
files: dist/*.tar.gz

- name: Upload sdist
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
Expand Down Expand Up @@ -156,39 +157,16 @@ jobs:
path: dist/*.whl
if-no-files-found: ignore

publish-to-pypi:
name: Publish Python 🐍 distribution 📦 to PyPI
needs:
- Linux
- non-Linux
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/randovania-lupa
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

# publish-to-testpypi:
# name: Publish Python 🐍 distribution 📦 to TestPyPI
# publish-to-pypi:
# name: Publish Python 🐍 distribution 📦 to PyPI
# needs:
# - Linux
# - non-Linux
# runs-on: ubuntu-latest

# environment:
# name: testpypi
# url: https://test.pypi.org/p/randovania-lupa

# name: pypi
# url: https://pypi.org/p/randovania-lupa
# permissions:
# id-token: write # IMPORTANT: mandatory for trusted publishing

Expand All @@ -198,7 +176,30 @@ jobs:
# with:
# merge-multiple: true
# path: dist/
# - name: Publish distribution 📦 to TestPyPI
# - name: Publish distribution 📦 to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://test.pypi.org/legacy/

publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
needs:
- Linux
- non-Linux
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/randovania-lupa

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion randovania_lupa/_lupa.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ cdef class LuaRuntime:
lua.lua_settop(L, old_top)
unlock_runtime(self)

def compile_to_byes(self, lua_code: str) -> bytes:
def compile_to_bytes(self, lua_code: str) -> bytes:
"""Compiles a Lua program and returns the bytes.

lua_code is a string with the lua code
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
except ImportError:
from distutils.core import setup, Extension

VERSION = '2.0'
VERSION = '2.1dev1'

extra_setup_args = {}

Expand Down

0 comments on commit e851f83

Please sign in to comment.