mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
Only run jobs when relevent
This commit is contained in:
parent
4a8e416f1f
commit
3ebf07ae74
12
.github/workflows/python-package.yml
vendored
12
.github/workflows/python-package.yml
vendored
@ -3,11 +3,7 @@
|
||||
|
||||
name: Python Package
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@ -61,7 +57,12 @@ jobs:
|
||||
|
||||
build:
|
||||
needs: test
|
||||
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags'))
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
MACOSX_DEPLOYMENT_TARGET: 10_15
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [ 3.7, 3.8, 3.9 ]
|
||||
@ -106,6 +107,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
needs: build
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
Loading…
Reference in New Issue
Block a user