Skip to content

Commit

Permalink
update workflows (#169)
Browse files Browse the repository at this point in the history
* update workflows

* update requirements
  • Loading branch information
fwfichtner authored Jan 30, 2023
1 parent f9c2ae5 commit cf53e86
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: black lint
run: |
python -m pip install black
black . --check --line-length 120
# - uses: psf/black@stable
# with:
# args: ". --check --line-length 120"
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--check --line-length 120"
src: "."
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: ['3.7', '3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -36,7 +36,7 @@ jobs:
SCIHUB_USER: ${{ secrets.SCIHUB_USER }}
SCIHUB_PW: ${{ secrets.SCIHUB_PW }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
Expand Down

0 comments on commit cf53e86

Please sign in to comment.