Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ab5424 authored Nov 8, 2023
1 parent a9d39fc commit 54578f9
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Tests

on:
push:
branches: [main]
paths-ignore: ["**/*.md", docs/**]
pull_request:
branches: [main]
paths-ignore: ["**/*.md", docs/**]

permissions:
contents: read

jobs:
test:
# prevent this action from running on forks
if: github.repository == 'ab5424/agility'
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.9", "3.11"]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.py
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install numpy packaging
python -m pip install -e '.[dev,optional]'
- name: pytest
run: |
pytest tests

0 comments on commit 54578f9

Please sign in to comment.