Skip to content

README.md

README.md #82

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:

Check failure on line 22 in .github/workflows/build-and-test.yml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-test.yml (Line: 22, Col: 3): Error calling workflow 'NoraMA-01/SophiaIII/.github/workflows/docker.yml@41c07420903945e8896ee39074249d0129a88079'. The nested job 'build' is requesting 'packages: write', but is only allowed 'packages: read'.
uses: ./.github/workflows/docker.yml
with:
registry-dockerhub-enable: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
registry-repo-name: SOPHIAIII
registry-readme: ./docs/README.md
secrets:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
test-sophiaiii-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: "sophiaiii-postgres-tests"
needs: build
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
test-sophiaiii-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: "sophiaiii-sqlite-tests"
needs: build
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}