-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 952 Bytes
/
publish.yml
File metadata and controls
45 lines (37 loc) · 952 Bytes
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
name: Publish to PyPI
on:
push:
tags:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.5.1
- name: Install project dependencies
run: poetry install
- name: Run pytest with coverage
env:
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
run: poetry run pytest --cov=earth_extractor --cov-report term-missing
publish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Publish Package
uses: celsiusnarhwal/poetry-publish@v2
with:
python-version: 3.8
poetry-version: 1.5.1
token: ${{ secrets.PYPI_TOKEN }}
build: true