Skip to content

Commit 4389963

Browse files
committed
Add basic CI/CD config with installation of dependencies and running linting
1 parent 80b8f93 commit 4389963

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, reopened]
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
max-parallel: 1
18+
matrix:
19+
os: [ubuntu-24.04, macos-13, windows-2022]
20+
python-version: ["3.13"]
21+
include:
22+
- os: ubuntu-24.04
23+
name: Linux
24+
- os: macos-13
25+
name: macOS
26+
- os: windows-2022
27+
name: Windows
28+
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- name: Install poetry
33+
run: pipx install poetry==2.1.2
34+
35+
- name: Set up Python ${{ matrix.python-version }}
36+
uses: actions/setup-python@v5
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
cache: "poetry"
40+
41+
- name: Install dependencies
42+
run: |
43+
poetry install
44+
shell: bash
45+
46+
- name: Lint
47+
run: |
48+
poetry run python -m finecode run lint
49+
shell: bash
50+
51+
# - name: Run unit tests
52+
# if: ${{ !cancelled() }}
53+
# run: |
54+
# poetry run python -m pytest tests/
55+
# shell: bash

0 commit comments

Comments
 (0)