Skip to content

Commit

Permalink
ci: use newer action (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
himkt authored Jan 13, 2024
1 parent 94b50ee commit f6c4fd0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:

jobs:
tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
max-parallel: 4
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -33,14 +33,19 @@ jobs:
- run: python -m pip install --upgrade pip
- run: pip install .[all]
- run: pip install ruff pytest httpx mypy types-requests

- run: |
pip install ruff
ruff check src
ruff format --diff src
- run: |
pip install mypy types-requests
mypy src
- run: pytest
- run: |
pip install pytest httpx
pytest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:

jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.9
with:
Expand Down

0 comments on commit f6c4fd0

Please sign in to comment.