-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 985 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Automatic Test
# Specify which GitHub events will trigger a CI build
on: push
# Define a single job, build
jobs:
build:
# Specify an OS for the runner
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11","3.12"]
#Define steps
steps:
# Firstly, checkout repo
- name: Checkout repository
uses: actions/checkout@v4
# Set up Python env
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# Install dependencies
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install poetry
poetry install
- name: Run isort
run: |
poetry run isort --check --diff cfapyx
# Test with pytest
- name: Run pytest
run: |
poetry run pytest