Skip to content

Commit

Permalink
Release Version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
max-muoto committed Dec 7, 2024
1 parent 238b93c commit 32ff1f5
Show file tree
Hide file tree
Showing 26 changed files with 2,926 additions and 261 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
release:
types: [created]

jobs:
deploy:
needs: [build-and-test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Build and publish to PyPi
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
uv build
uv publish
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Core

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: uv sync --all-groups

- name: Run tests
env:
OXR_APP_ID: ${{ secrets.OXR_APP_ID }}
run: uv run pytest --rootdir=oxr --cov --cov-report=''

- name: Run ruff
run: |
uv run ruff check .
uv run ruff format --check
- name: Run pyright
run: uv run pyright

Loading

0 comments on commit 32ff1f5

Please sign in to comment.