-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move single-length matrix strategy dimensions to env-vars (#1082)
* move single-length matrix strategy dimensions to env-vars * update python version usage
- Loading branch information
1 parent
03b2a64
commit 9c05ab5
Showing
2 changed files
with
26 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,24 +12,25 @@ on: | |
- '.all-contributorsrc' | ||
- 'CONTRIBUTORS.md' | ||
workflow_call: | ||
|
||
env: | ||
PYTHON_VERSION: '3.10' | ||
POETRY_VERSION: '1.8.3' | ||
|
||
jobs: | ||
build-reference-documentation: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
poetry-version: ["1.8.2"] | ||
steps: | ||
- run: sudo apt-get install -y pandoc | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Poetry ${{ matrix.poetry-version }} | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Install Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
poetry-version: $POETRY_VERSION | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: "Run Reference Documentation Generation" | ||
|
@@ -51,40 +52,32 @@ jobs: | |
docs/_build/html | ||
code-format-check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
poetry-version: ["1.8.2"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Poetry ${{ matrix.poetry-version }} | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Install Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
poetry-version: $POETRY_VERSION | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Run Format Check | ||
run: poetry run poe static_checks | ||
test-coverage: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
poetry-version: ["1.8.2"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Poetry ${{ matrix.poetry-version }} | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Install Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
poetry-version: $POETRY_VERSION | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Run Test Coverage | ||
|
@@ -95,18 +88,17 @@ jobs: | |
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python_version: ["3.9", "3.10", "3.11", "3.12"] | ||
poetry-version: ["1.8.2"] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{matrix.python_version}} ${{matrix.os}} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.python_version}} | ||
- name: Install Poetry ${{ matrix.poetry-version }} | ||
- name: Install Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
poetry-version: $POETRY_VERSION | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Run Unit Tests and Doctests Python ${{matrix.python_version}} ${{matrix.os}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,32 +15,31 @@ on: | |
branches: | ||
- 'main' | ||
- 'dev' | ||
env: | ||
PYTHON_VERSION: '3.10' | ||
POETRY_VERSION: '1.8.3' | ||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
publish: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: github.ref=='refs/heads/main' || github.ref=='refs/heads/dev' | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
poetry-version: ["1.8.2"] | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
- name: Set up Python ${{ matrix.python-version }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Poetry ${{ matrix.poetry-version }} | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Install Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
poetry-version: $POETRY_VERSION | ||
- name: Add poetry-dynamic-versioning plugin | ||
run: poetry self add "poetry-dynamic-versioning[plugin]" | ||
- name: Install dependencies | ||
|