Skip to content

Commit

Permalink
Added check to avoid running tests twice on non-fork PR. Removed unne…
Browse files Browse the repository at this point in the history
…eded step. Changed mypy to run with latest py version used in tests
  • Loading branch information
Ivan Sanchez committed Nov 7, 2022
1 parent d45545c commit 6ec36ee
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/main.yml
Expand Up @@ -5,6 +5,7 @@ on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
strategy:
fail-fast: false
matrix:
Expand All @@ -24,18 +25,13 @@ jobs:
- python-version: "3.10"
env:
TOXENV: py
- python-version: "3.7"
- python-version: "3.10"
env:
TOXENV: mypy

steps:
- uses: actions/checkout@v3

- name: Install system libraries
if: contains(matrix.python-version, 'pypy3.9')
run: |
sudo apt-get update
sudo apt-get install libxml2-dev libxslt-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 6ec36ee

Please sign in to comment.