Skip to content

Commit

Permalink
add GitHub Actions pytest workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Apr 8, 2024
1 parent 41a2d2f commit f4cf163
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
pytest:
runs-on: ubuntu-latest

services:
mongodb:
image: mongo
ports:
- 27017:27017

steps:
- uses: actions/checkout@v4

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.8
activate-environment: test-environment

- name: Install dependencies
shell: bash -l {0}
run: |
conda info -a
pip install --ignore-installed -r requirements.txt -r requirements-ci.txt
- name: Run fireworks tests
shell: bash -l {0}
run: |
pip install .[workflow-checks,graph-plotting,flask-plotting]
pytest fireworks

0 comments on commit f4cf163

Please sign in to comment.