Skip to content

Commit 084d555

Browse files
committed
Change Actions
1 parent 4bd1b80 commit 084d555

3 files changed

Lines changed: 22 additions & 14 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Setup Python Environment
2+
description: Checkout, set up Python, and install dependencies
3+
4+
inputs:
5+
python-version:
6+
required: true
7+
8+
runs:
9+
using: composite
10+
steps:
11+
- uses: actions/checkout@v5
12+
- uses: actions/setup-python@v6
13+
with:
14+
python-version: ${{ inputs.python-version }}
15+
- run: pip install -e ".[dev]"
16+
shell: bash

.github/workflows/ci-full.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
test-full:
1010
name: Full Integration Tests (Python ${{ matrix.python-version }})
11-
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'run-full-tests'
11+
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'requires-full-tests'
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
@@ -24,9 +24,7 @@ jobs:
2424
FIRECREST_URL: ${{ secrets.FIRECREST_URL }}
2525
FIRECREST_USERNAME: ${{ secrets.FIRECREST_USERNAME }}
2626
steps:
27-
- uses: actions/checkout@v5
28-
- uses: actions/setup-python@v6
27+
- uses: ./.github/actions/setup
2928
with:
3029
python-version: ${{ matrix.python-version }}
31-
- run: pip install -e ".[dev]"
3230
- run: pytest --cov --cov-report=term-missing -n auto -m full
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Lightweight CI
22

33
on:
44
push:
@@ -14,11 +14,9 @@ jobs:
1414
matrix:
1515
python-version: ["3.12"]
1616
steps:
17-
- uses: actions/checkout@v5
18-
- uses: actions/setup-python@v6
17+
- uses: ./.github/actions/setup
1918
with:
2019
python-version: ${{ matrix.python-version }}
21-
- run: pip install -e ".[dev]"
2220
- run: ruff check .
2321
- run: ruff format --check .
2422

@@ -29,11 +27,9 @@ jobs:
2927
matrix:
3028
python-version: ["3.12"]
3129
steps:
32-
- uses: actions/checkout@v5
33-
- uses: actions/setup-python@v6
30+
- uses: ./.github/actions/setup
3431
with:
3532
python-version: ${{ matrix.python-version }}
36-
- run: pip install -e ".[dev]"
3733
- run: mypy
3834

3935
test:
@@ -53,9 +49,7 @@ jobs:
5349
FIRECREST_URL: ${{ secrets.FIRECREST_URL }}
5450
FIRECREST_USERNAME: ${{ secrets.FIRECREST_USERNAME }}
5551
steps:
56-
- uses: actions/checkout@v5
57-
- uses: actions/setup-python@v6
52+
- uses: ./.github/actions/setup
5853
with:
5954
python-version: ${{ matrix.python-version }}
60-
- run: pip install -e ".[dev]"
6155
- run: pytest --cov --cov-report=term-missing -n auto -m lightweight

0 commit comments

Comments
 (0)