Skip to content

Commit

Permalink
Update core.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mikahanninen committed Dec 11, 2024
1 parent d1c559f commit dc4125c
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ on:
branches:
- master
paths:
- 'packages/core/**'
- '.github/workflows/core.yaml'
- "packages/core/**"
- ".github/workflows/core.yaml"
pull_request:
branches:
- master
paths:
- 'packages/core/**'
- '.github/workflows/core.yaml'
- "packages/core/**"
- ".github/workflows/core.yaml"

defaults:
run:
working-directory: './packages/core'
working-directory: "./packages/core"

jobs:
test:
Expand Down Expand Up @@ -86,33 +86,33 @@ jobs:
env:
INVOKE_IS_CI_CD: 1
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install invocation prerequisites
run: pip install -Ur ../../invocations/requirements.txt
- name: Get python version
id: full-python-version
shell: bash
run: |
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info[:3]))")
- name: Set up cache
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('poetry.lock') }}
- name: Install invocation package
run: invoke install-invocations || invoke self.install-invocations
- name: Install dependencies
run: invoke install
- name: Lint
run: invoke code.lint -e
- name: Test
run: invoke code.test -a
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install invocation prerequisites
run: pip install -Ur ../../invocations/requirements.txt
- name: Get python version
id: full-python-version
shell: bash
run: |
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info[:3]))")
- name: Set up cache
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('poetry.lock') }}
- name: Install invocation package
run: invoke install-invocations || invoke self.install-invocations
- name: Install dependencies
run: invoke install
- name: Lint
run: invoke code.lint -e
- name: Test
run: invoke code.test -a

# publish:
# # Only publish on master workflow runs
Expand Down

0 comments on commit dc4125c

Please sign in to comment.