Skip to content

Commit

Permalink
Merge pull request #95 from genomic-medicine-sweden/automated-pytype
Browse files Browse the repository at this point in the history
Add automated PyType Github action
  • Loading branch information
erik-brink authored Jan 8, 2025
2 parents 74696cb + e42c74c commit 9e3e690
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pytype.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

name: PyType

on:
push:
branches: ["dev"]
pull_request:
branches: ["dev", "master"]
workflow_dispatch:

permissions:
contents: read

jobs:
pytype:
name: Run PyType
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

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

- name: Create and start virtual environment
run: |
python -m venv venv
source venv/bin/activate
- name: Install dependencies
run: |
pip install pytype
pip install .
- name: Run pytype
run: |
pytype

0 comments on commit 9e3e690

Please sign in to comment.