Skip to content

Commit

Permalink
chore: update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dartheian committed Mar 15, 2023
1 parent 575eec4 commit b95bc69
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 37 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,22 @@ jobs:
if: startsWith(github.ref, 'refs/tags')

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install Poetry
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Install Poetry
run: |
python -m pip install --upgrade pip setuptools
python -m pip install poetry
- name: Build package
run: python -m poetry build
- name: Build package
run: python -m poetry build

- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
38 changes: 17 additions & 21 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, 3.10, 3.11]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry-core tox coverage[toml]
- name: Tox tests
run: |
python -m tox -e py
python -m coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry-core tox coverage[toml]
- name: Tox tests
run: |
python -m tox -e py
python -m coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v3

0 comments on commit b95bc69

Please sign in to comment.