Skip to content

move layer

move layer #55

name: Build and Test
on: ["push"]
jobs:
lint:
runs-on: ubuntu-22.04
name: Python Black Lint Check
steps:
- name: Check out repository
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: 3.8
- name: Install Python dependencies
run: pip install black nbqa
- name: Run Black on Python files
run: black --check $(find . -type f -name "*.py")
build:
uses: ./.github/workflows/docker.yml
with:
registry-dockerhub-enable: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
registry-repo-name: AGiXT
registry-readme: ./docs/README.md
secrets:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
test-agixt-postgres:
uses: ./.github/workflows/tests.yml
with:
notebook: tests/endpoint-tests.ipynb
image: ${{ needs.build.outputs.primary-image }}
port: "7437"
database-type: "postgresql"
report-name: "agixt-postgres-tests"
needs: build
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
test-agixt-sqlite:
uses: ./.github/workflows/tests.yml
with:
notebook: tests/endpoint-tests.ipynb
image: ${{ needs.build.outputs.primary-image }}
port: "7437"
database-type: "sqlite"
report-name: "agixt-sqlite-tests"
needs: build
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}