Skip to content

Commit

Permalink
πŸ‘‹πŸ‘‹ πŸ‘· Travis - welcome :octocat:🎬
Browse files Browse the repository at this point in the history
  • Loading branch information
dpshelio committed Oct 13, 2021
1 parent 8155c46 commit 5e2948c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
markdown_link_extractor
testfixtures
pyyaml
pytest
30 changes: 30 additions & 0 deletions .github/workflows/check_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Checks format
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Checks-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- id: setup-python
name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
uses: py-actions/py-dependency-install@v2
with:
path: ".ci/requirements.txt"
- name: Check files
run: python .ci/check_scripts.py
- name: test code
# Only run pytest when changes happened in the .ci directory
# it needs that checkout actions fetch all the branches (fetch-depth 0) to see main.
run: if $(git diff --name-only HEAD..origin/main | grep -q ".ci"); then pytest .ci/; fi
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

0 comments on commit 5e2948c

Please sign in to comment.