Skip to content

Commit

Permalink
Update testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrtalbot committed Sep 22, 2023
1 parent 9c3935c commit 477edf6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/python-linting.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/python-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint-and-test

on: [push]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
- uses: chartboost/ruff-action@v1
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Run tests
run: |
python -m pytest --import-mode=append tests/

0 comments on commit 477edf6

Please sign in to comment.