-
-
Notifications
You must be signed in to change notification settings - Fork 364
51 lines (47 loc) · 1.44 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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/checkout@v4.2.2
- name: Set up Python
uses: actions/setup-python@v5.3.0
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 }}