diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5575f57..2c8ca94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} @@ -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 }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bf134bd..b3d902c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: