-
Notifications
You must be signed in to change notification settings - Fork 122
Migrate Travis CI testing setup to GitHub actions #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
barneysowood
merged 9 commits into
saltstack:develop
from
barneysowood:tests-github-actions
May 1, 2023
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a83fc07
Update python and salt versions in tox.ini
barneysowood e7d7bd9
Update coverage version to current
barneysowood 29b0313
Add GH Actions workflow
barneysowood b28888c
Add GH Actions workflow for flake8
barneysowood d3c6c18
Add exclusion for master and py3.5/3.6
barneysowood 6f897d9
Run tox without -vv
barneysowood acce4f6
Update pytest-salt url
barneysowood 1c1aca7
Update requirements to match current salt
barneysowood e4afa37
Removed scheduled run of flake8
barneysowood File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: flake8 lint | ||
| on: | ||
| push: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| flake8-lint: | ||
| runs-on: ubuntu-20.04 | ||
| name: flake8 lint | ||
| steps: | ||
| - name: Setup python for flake8 | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.8" | ||
| - uses: actions/checkout@v3 | ||
| - name: Install tox | ||
| run: python -m pip install tox | ||
| - name: Setup flake8 | ||
| run: tox --notest -e flake8 | ||
| - name: Run flake8 | ||
| run: tox -e flake8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| name: test | ||
| on: | ||
| push: | ||
| pull_request: | ||
| schedule: | ||
| - cron: "0 8 * * *" | ||
|
|
||
| jobs: | ||
| test: | ||
| name: test ${{ matrix.py }} - ${{ matrix.netapi }} - ${{ matrix.salt }} | ||
| runs-on: ubuntu-20.04 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| py: | ||
| - "3.5" | ||
| - "3.6" | ||
| - "3.7" | ||
| - "3.8" | ||
| netapi: | ||
| - "cherrypy" | ||
| - "tornado" | ||
| salt: | ||
| - "v3004.2" | ||
| - "v3005.1" | ||
| - "master" | ||
| exclude: | ||
| - salt: master | ||
| py: "3.5" | ||
| - salt: master | ||
| py: "3.6" | ||
| steps: | ||
| - name: Setup python for test ${{ matrix.py }} | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.py }} | ||
| - uses: actions/checkout@v3 | ||
| - name: Install setuptools_scm | ||
| run: python -m pip install setuptools_scm | ||
| - name: Install tox | ||
| run: python -m pip install tox | ||
| - name: Install dependencies | ||
| run: sudo apt update && sudo apt install -y libc6-dev libffi-dev gcc git openssh-server libzmq3-dev | ||
| env: | ||
| DEBIAN_FRONTEND: noninteractive | ||
| - name: Setup tests | ||
| run: tox --notest -e py${{ matrix.py }}-${{ matrix.netapi }}-${{ matrix.salt }} | ||
| - name: Run tests | ||
| run: tox -e py${{ matrix.py }}-${{ matrix.netapi }}-${{ matrix.salt }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.