Skip to content

Commit

Permalink
Windows test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed May 14, 2024
1 parent ea1e4ea commit f3a0d08
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,47 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml

windows:
runs-on: windows-latest
strategy:
matrix:
python-version: [["3.12", "312"]]
evm-version: [shanghai]
evm-backend: [py-evm]

name: "py${{ matrix.python-version[1] }}-windows-${{ matrix.evm-version }}-${{ matrix.evm-backend }}"

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # we need the full history for setuptools_scm to infer the version

- name: Set up Python ${{ matrix.python-version[0] }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version[0] }}
cache: "pip"

- name: Install dependencies
run: pip install .[test]

- name: Run tests
run: |
pytest \
-m "not fuzzing" \
--evm-version ${{ matrix.evm-version }} \
--evm-backend ${{ matrix.evm-backend }} \
tests/
core-tests-success:
if: always()
# summary result from test matrix.
# see https://github.community/t/status-check-for-a-matrix-jobs/127354/7
runs-on: ubuntu-latest
needs: tests
needs: [tests, windows]
steps:
- name: Check tests tests all succeeded
if: ${{ needs.tests.result != 'success' }}
if: ${{ needs.tests.result != 'success' || needs.windows.result != 'success' }}
run: exit 1


Expand Down

0 comments on commit f3a0d08

Please sign in to comment.