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 e1bf3d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: build-and-push
on:
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
on: [push]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
# 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:
workflow_run:
workflows: ["build-and-push"]
types:
- completed
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 e1bf3d0

Please sign in to comment.