Skip to content

fix pyproject.toml

fix pyproject.toml #59

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Build fp
on:
workflow_dispatch:
push:
branches:
- master
- meta
pull_request:
branches: [ master ]
# workflow_call:
# inputs:
# jax:
# type: string
# required: true
# torch:
# type: string
# required: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: actions/cache@v4
with:
path: |
~/.cache/pypoetry
~/.cache/pip
key: ${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }}
- name: Build fp
run: |
cd ${{ github.workspace }} && source .github/build.sh
build "jax:torch"
- name: Run foobar
run: |
#poetry run fp-tests
poetry run python examples/foobar.py
- name: Run structs
run: poetry run python examples/structs.py
- name: Run arrays
run: |
poetry poe torchinstall
poetry poe jaxinstall
poetry run python examples/arrays.py
- run: echo "🍏 This job's status is ${{ job.status }}."