diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml deleted file mode 100644 index 0a8b8e9..0000000 --- a/.github/workflows/black.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: Lint - -on: [push, pull_request] - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: psf/black@stable \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 9bdcc2e..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: build -on: - push: - branches: [ "main" ] - workflow_dispatch: -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - call-workflow1: - name: tests - uses: ./.github/workflows/test.yml - call-workflow2: - needs: call-workflow1 - name: docs - uses: ./.github/workflows/docs.yml - print: - needs: [call-workflow1] - runs-on: ubuntu-latest - steps: - - run: echo "${{ needs.call-workflow1 }}" \ No newline at end of file diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index b01d680..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: docs - -on: workflow_call - -# security: restrict permissions for CI jobs. -permissions: - contents: read - -jobs: - # Build the documentation and upload the static HTML files as an artifact. - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: '3.11' - - # ADJUST THIS: install all dependencies (including pdoc) - - run: pip install -e . - - run: pip install pdoc - # ADJUST THIS: build your documentation into docs/. - # We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here. - - run: pdoc src/sciterra -d google --math -o ./docs - - - uses: actions/upload-pages-artifact@v1 - with: - path: docs/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ca8ccfb..939d6ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,6 @@ name: tests -on: workflow_call +on: [push] jobs: build: @@ -22,4 +22,4 @@ jobs: - name: Test with pytest run: | pip install pytest - pytest + pytest src/tests/test_librarian.py