Test can now be run against a specific branch for other repos. #145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Lint Code | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Lint | |
uses: github/super-linter/slim@v5 | |
env: | |
VALIDATE_ALL_CODEBASE: true | |
DEFAULT_BRANCH: main | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
test1: | |
name: Test Full | |
needs: lint | |
uses: pyanodon/pyanodontests/.github/workflows/pytest.yml@main | |
with: | |
test_ref: main | |
secrets: inherit | |
# test2: | |
# name: Test PyAl | |
# needs: lint | |
# uses: pyanodon/pyanodontests/.github/workflows/pytest.yml@main | |
# with: | |
# repository: "pyanodon/pyalienlife" | |
# ref: "master" | |
# test_ref: main | |
# secrets: inherit |