Skip to content

Commit af16b2e

Browse files
committed
👷 Update CI
1 parent 673db63 commit af16b2e

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/main.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build & Test
2+
on: push
3+
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: psf/black@stable
10+
with:
11+
src: "./melusine"
12+
13+
test:
14+
name: Test
15+
needs: lint
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
max-parallel: 2
20+
matrix:
21+
python-version: ["3.8", "3.10"]
22+
steps:
23+
- name: Checkout the repository
24+
uses: actions/checkout@v3
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install tox tox-gh-actions
33+
- name: Test with tox
34+
run: tox
35+
36+
coverage:
37+
name: Create coverage badge
38+
needs: test
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Coverage Badge
42+
uses: codecov/codecov-action@v3
43+
44+
deploy:
45+
name: Deploy python package
46+
needs: test
47+
runs-on: ubuntu-latest
48+
steps:
49+
- run: echo "Deploying .."

0 commit comments

Comments
 (0)