Skip to content

Commit

Permalink
Checkout first
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPaton committed Sep 25, 2024
1 parent 54fe105 commit eca6234
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/setup-project/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ name: 'Setup airbase'
description: 'Configure python, uv and airbase'
inputs:
python-version:
description: 'Python version to run on'
required: false
default: '3.x'
allow-python-prereleases:
description: 'Allow Python prereleases'
required: false
default: false
runs:
using: "composite"
steps:
steps:
- uses: actions/checkout@v4
# https://docs.astral.sh/uv/guides/integration/github/#installation
- name: Install uv
# Install latest uv version using the installer
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- python: '3.13'
prerelease: true
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
name: Setup project
with:
Expand All @@ -31,6 +32,7 @@ jobs:
needs: unit-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
name: Setup project
- run: uv run pytest -lvk "integration"
Expand All @@ -40,6 +42,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
name: Setup project
- uses: pre-commit/[email protected]
Expand All @@ -50,6 +53,7 @@ jobs:
needs: [unit-test, lint, integration-test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
name: Setup project
- run: |
Expand Down

0 comments on commit eca6234

Please sign in to comment.