Skip to content

Commit

Permalink
Temp change to test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Apr 9, 2024
1 parent 69583d4 commit 46ffa45
Showing 1 changed file with 15 additions and 24 deletions.
39 changes: 15 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
name: Test

on:
push:
workflow_dispatch:

name: Run tests
on: [push]
jobs:
test:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: [ '3.8', '3.9', '3.10', '3.11', ]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
if: hashFiles('pyproject.toml')
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: '**/pyproject.toml'
- name: Install dependencies
if: hashFiles('pyproject.toml')
run: |
pip install -e '.[test]'
- name: Run tests
if: hashFiles('pyproject.toml')
run: |
pytest
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install
run: pip install .
- name: Test
run: pytest

0 comments on commit 46ffa45

Please sign in to comment.