Skip to content

Commit

Permalink
cicd: reorganize QC checks (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson authored Mar 22, 2024
1 parent 3adbb48 commit aa41a86
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
name: Tests
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install dependencies
run: python3 -m pip install ".[dev]"

- name: Check style
run: python3 -m ruff check . && python3 -m ruff format --check .

test:
runs-on: ubuntu-latest
strategy:
matrix:
db_url: ["http://localhost:8000", "postgres://postgres:postgres@localhost:5432/gene_normalizer_test"]
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
services:
postgres:
image: postgres:14
Expand Down Expand Up @@ -63,6 +47,22 @@ jobs:
- name: Run tests
run: python3 -m pytest tests/
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install dependencies
run: python3 -m pip install ".[dev]"

- name: Check style
run: python3 -m ruff check . && python3 -m ruff format --check .

docs:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit aa41a86

Please sign in to comment.