Skip to content

Commit b64d14d

Browse files
authored
Create ci.yml
1 parent 9b40a3b commit b64d14d

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
python-version: ["3.10", "3.11", "3.12"]
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version: ${{ matrix.python-version }}
15+
cache: pip
16+
- run: python -m pip install --upgrade pip
17+
- run: pip install -e ".[dev]"
18+
- run: ruff check .
19+
- run: ruff format --check .
20+
- run: pytest
21+
22+
- name: Scoring smoke-test
23+
run: |
24+
python -m econ_math_portfolio score submissions/contract_good.json --json
25+
python -m econ_math_portfolio score submissions/contract_bad_format.json --json || true

0 commit comments

Comments
 (0)