Skip to content

Commit

Permalink
Run github actions on all pushes / PRs (AbanteAI#222)
Browse files Browse the repository at this point in the history
* run github actions on all pushes / prs

* only run pull-request github actions from other repos
  • Loading branch information
biobootloader authored Oct 30, 2023
1 parent 45ef532 commit 88ebe7c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@

name: lint and test

on:
push:
branches:
- main
pull_request:
branches:
- main
on: [push, pull_request]

jobs:
ruff-black-isort:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -27,6 +22,7 @@ jobs:
run: isort --profile black --check .

build:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -62,6 +58,7 @@ jobs:
pytest
license-check:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 88ebe7c

Please sign in to comment.