Skip to content

Commit

Permalink
🐛 Fix workflow file regression
Browse files Browse the repository at this point in the history
It seems like we can't use env in stragegy.matrix, refs:
- https://github.com/orgs/community/discussions/56787
- amitdev#54 (comment)
  • Loading branch information
AndreMiras committed Nov 1, 2023
1 parent 1487017 commit 82fefbb
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@ name: Tests

on: [push, pull_request]

env:
PYTHON_VERSIONS: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8", "pypy-3.9", "pypy-3.10"]

jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
python: ${{fromJson(env.PYTHON_VERSIONS)}}
python:
[
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"pypy-3.8",
"pypy-3.9",
"pypy-3.10",
]

steps:
- uses: actions/checkout@v4
Expand All @@ -24,7 +31,17 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python: ${{fromJson(env.PYTHON_VERSIONS)}}
python:
[
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"pypy-3.8",
"pypy-3.9",
"pypy-3.10",
]

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 82fefbb

Please sign in to comment.