Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Asthestarsfalll committed Nov 25, 2024
1 parent 23bbe42 commit 7af4c94
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: MYPY Check

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

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10']

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.6.1

- name: Install Dependencies
run: poetry install --with dev

- name: Mypy Check
run: |
poetry run mypy --install-types
poetry run mypy excore/
4 changes: 4 additions & 0 deletions tests/init.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import os
import subprocess

import toml

import excore

predefined_inputs = {
"name": "tests",
"src": "source_code",
Expand Down Expand Up @@ -41,6 +44,7 @@ def init():
toml.dump(cfg, f)
excute("excore update")
excute("excore auto-register")
assert os.path.exists(os.path.join(excore.workspace.cache_base_dir, "tests"))


if __name__ == "__main__":
Expand Down

0 comments on commit 7af4c94

Please sign in to comment.