Skip to content

other/patches might be important #506

other/patches might be important

other/patches might be important #506

name: rules engine
on: [push, pull_request]
env:
working-directory: rules-engine
defaults:
run:
working-directory: rules-engine
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11.3"] # Check python version at https://pyodide.org/en/stable/project/changelog.html
steps:
- uses: actions/checkout@v3
- name: Set up environment
uses: "./.github/actions/setup-rules-engine"
with:
python-version: ${{ matrix.python-version }}
- name: Check style
run: |
make lint
mypy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11.3"]
steps:
- uses: actions/checkout@v3
- name: Set up environment
uses: "./.github/actions/setup-rules-engine"
with:
python-version: ${{ matrix.python-version }}
- name: Check typing
run: |
make mypy
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11.3"]
steps:
- uses: actions/checkout@v3
- name: Set up environment
uses: "./.github/actions/setup-rules-engine"
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
make test
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11.3"]
steps:
- uses: actions/checkout@v3
- name: Set up environment
uses: "./.github/actions/setup-rules-engine"
with:
python-version: ${{ matrix.python-version }}
- name: Build wheel
run: |
make build
- name: list dist
run: |
ls -al dist
- name: store wheel
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: ${{ env.working-directory }}/dist/
publish-to-test:
name: Publish to testpypi
needs:
- build
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Download dist
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: publish to testpypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/