Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on:
4 workflow_dispatch:
5
6 jobs:
7 build:
8 runs-on: ubuntu-latest
9
10 steps:
11 - name: Checkout code
12 uses: actions/checkout@v2
13
14 - name: Set up Python
15 uses: actions/setup-python@v2
16 with:
17 python-version: 3.10.13
18
19 - name: Install Poetry
20 run: |
21 pip install poetry coverage
22 poetry config virtualenvs.create false
23
24 - name: Run unittest tests
25 run: coverage run -m unittest discover -s tests
26
27 - name: Upload Coverage to Codecov
28 uses: codecov/codecov-action@v2
29 with:
30 token: ${{ secrets.CODECOV_TOKEN }}
31
32 - name: Build with Poetry
33 run: |
34 poetry build
35
36 - name: Publish
37 run: |
38 pip install twine
39 twine upload dist/*
40 env:
41 TWINE_USERNAME: __token__
42 TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}