Skip to content

Commit

Permalink
fix: reorder github workflows
Browse files Browse the repository at this point in the history
test, build then publish container image
  • Loading branch information
Jjungs7 committed Oct 29, 2023
1 parent 92e3488 commit 2196037
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: build-and-push
on:
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
workflow_run:
workflows: ["python-lint-test-multiple-versions"]
types:
- completed
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package

name: python-lint-test-multiple-versions
on:
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down

0 comments on commit 2196037

Please sign in to comment.