Skip to content

Commit

Permalink
Add Tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shBLOCK committed Sep 5, 2023
1 parent 9f48035 commit 2483163
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Tests

on:
workflow_run:
workflows: [Codegen]
types: [completed]

jobs:
tests:
runs-on: ${{ matrix.platform }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
fail-fast: true
matrix:
# python: ["3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
python: ["3.11"]
# platform: ["windows-latest", "ubuntu-latest", "macos-latest"]
platform: ["windows-latest"]

steps:
- name: Checkout
uses: actions/checkout@v3
with:
sparse-checkout: |
codegen
tests
- name: Download Codegen Output
uses: actions/download-artifact@v3
with:
name: codegen_results
path: src/gdmath/

- name: Test Download
run: dir src\gdmath

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install Dependencies
run: pip install -r requirements.txt

- name: Build
run: pip install .

- name: Test
run: pytest tests

0 comments on commit 2483163

Please sign in to comment.