-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use github actions instead of gitlab-ci
- Loading branch information
Elodie Thiéblin
committed
Aug 17, 2023
1 parent
1c68ca9
commit 1fe9d4a
Showing
2 changed files
with
45 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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,45 @@ | ||
name: Test | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
lint: | ||
name: Linting and formatting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
name: Install Python | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install tox | ||
run: python -m pip install tox | ||
|
||
- name: Run test suite | ||
run: python -m tox -e flake8,black,yamllint | ||
|
||
test_tox: | ||
name: Run full tests | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
name: Install Python | ||
with: | ||
python-version: "3.x" | ||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "latest" | ||
|
||
- name: Install node modules | ||
run: npm ci | ||
|
||
- name: Install tox | ||
run: python -m pip install tox | ||
|
||
- name: Run test suite | ||
run: python -m tox -e py3 |
This file was deleted.
Oops, something went wrong.