diff options
| author | Anthony Sottile <asottile@umich.edu> | 2021-04-03 14:17:55 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2021-04-03 14:30:38 -0700 |
| commit | 0e3806b25e598faf28b75df5314eaac79a38afa8 (patch) | |
| tree | f3775a45ab1802ef0ad6bdd36c1ce24ee6c7ff29 | |
| parent | e0116d8e77fb04acc62095734ec49e779f24ee54 (diff) | |
| download | flake8-github_actions.tar.gz | |
enable github actionsgithub_actions
| -rw-r--r-- | .appveyor.yml | 8 | ||||
| -rw-r--r-- | .github/workflows/main.yml | 51 | ||||
| -rw-r--r-- | .gitlab-ci.yml | 70 | ||||
| -rw-r--r-- | .pre-commit-config.yaml | 1 | ||||
| -rw-r--r-- | .travis.yml | 31 |
5 files changed, 52 insertions, 109 deletions
diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 174c6f3..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,8 +0,0 @@ -# To activate, change the Appveyor settings to use `.appveyor.yml`. -install: - - C:\Python38-x64\python.exe -m pip install --upgrade setuptools tox virtualenv - -build: off - -test_script: - - C:\Python38-x64\python.exe -m tox -e py36,py37,dogfood diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9743546 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,51 @@ +name: main + +on: + push: + branches: [master] + tags: + pull_request: + +jobs: + main: + strategy: + matrix: + include: + # linux + - os: ubuntu-latest + python: pypy-3.7 + toxenv: py + - os: ubuntu-latest + python: 3.6 + toxenv: py + - os: ubuntu-latest + python: 3.7 + toxenv: py + - os: ubuntu-latest + python: 3.8 + toxenv: py + - os: ubuntu-latest + python: 3.9 + toxenv: py + # windows + - os: windows-latest + python: 3.6 + toxenv: py + # misc + - os: ubuntu-latest + python: 3.9 + toxenv: docs + - os: ubuntu-latest + python: 3.9 + toxenv: linters + - os: ubuntu-latest + python: 3.9 + toxenv: dogfood + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - run: pip install --upgrade setuptools pip tox virtualenv + - run: tox -e ${{ matrix.toxenv }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 036190a..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,70 +0,0 @@ -image: python - -stages: -- test -- build -- release - -before_script: -- pip install pip --upgrade -- pip install -r dev-requirements.txt - -after_script: -- pip install codecov -- codecov --token=7d117e6b-aab6-4283-ab19-166dafc38cf5 - -pypy3: - image: pypy:3.6-7.2.0 - stage: test - script: tox -e pypy3 - -python36: - image: python:3.6 - stage: test - script: tox -e py36 - -python37: - image: python:3.7 - stage: test - script: tox -e py37 - -python38: - image: python:3.8 - stage: test - script: tox -e py38 - -linters: - image: python:3.7 - stage: test - script: tox -e linters - -pre-commit: - image: python:3.7 - stage: test - script: tox -e pre-commit - -docs: - stage: test - script: tox -e docs - -dogfood: - image: python:3.7 - stage: test - script: tox -e dogfood - -build: - stage: build - script: tox -e build - artifacts: - paths: - - dist/ - expire_in: 1 month - -release: - stage: release - script: tox -e build - artifacts: - paths: - - dist - only: - - tags diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7ab32ea..eb4ff62 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 hooks: + - id: check-yaml - id: debug-statements exclude: ^tests/fixtures/example-code/invalid-syntax.py$ - id: end-of-file-fixer diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5825520..0000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -language: python -cache: pip -before_script: -- pip install --upgrade tox setuptools virtualenv - -# test script -script: tox -notifications: - on_success: change - on_failure: always - -matrix: - include: - - python: 3.6 - env: TOXENV=py36 - - python: 3.7 - env: TOXENV=py37 - - python: 3.8 - env: TOXENV=py38 - - python: 3.7 - env: TOXENV=readme - - python: 3.7 - env: TOXENV=flake8 - - python: 3.7 - env: TOXENV=pylint - - python: 3.7 - env: TOXENV=doc8 - - python: 3.7 - env: TOXENV=bandit - - python: 3.7 - env: TOXENV=docs |
