-
Notifications
You must be signed in to change notification settings - Fork 38
52 lines (52 loc) · 1.41 KB
/
ci.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Python CI
on: [pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
python-version: ['3.8']
tox-action:
- lint
- pytest
- mypy
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install tox coveralls
- name: Test with tox
run: |
TOXENV=$(echo $TOXENV | sed 's/\.//') tox
env:
TOXENV: py${{ matrix.python-version }}-${{ matrix.tox-action }}
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
- uses: actions/setup-python@v4
with:
python-version: '3.7'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install --upgrade twine wheel
- name: Create and check packages
run: |
make dist
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.EPHEMERIS_PYPI_TOKEN }}