Skip to content

Commit

Permalink
improve ci (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Oct 15, 2022
1 parent 60ebbaa commit a060ecd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
with:
submodules: true
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- run: python -m pip install --upgrade pip
- run: python -m pip install -e .[test]
- run: coverage run -m pytest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"

- run: |
python -m pip install --upgrade pip
pip install -e .[test]
Expand All @@ -29,7 +32,7 @@ jobs:
- run: python setup.py sdist
- run: pip install --force-reinstall dist/*

- uses: pypa/gh-action-pypi-publish@master
- uses: pypa/gh-action-pypi-publish@v1
if: github.event_name == 'push' && contains(github.event.ref, '/tags/')
with:
user: __token__
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install --upgrade pip
Expand Down

0 comments on commit a060ecd

Please sign in to comment.