-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eef5d08
commit fefe063
Showing
2 changed files
with
58 additions
and
0 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,19 @@ | ||
--- | ||
image: archlinux | ||
packages: | ||
- python | ||
- python-pip | ||
sources: | ||
- https://git.sr.ht/~jmcantrell/swaystatus | ||
tasks: | ||
- setup: | | ||
cd swaystatus | ||
python -m venv venv | ||
. ./venv/bin/activate | ||
pip install --upgrade pip | ||
pip install --requirement=requirements/{production,development}.txt | ||
pip install --editable=. | ||
- test: | | ||
cd swaystatus | ||
. ./venv/bin/activate | ||
pytest |
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,39 @@ | ||
name: 'Run tests' | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
concurrency: | ||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create venv | ||
run: | | ||
python -m venv venv | ||
- name: Install dependencies | ||
run: | | ||
. ./venv/bin/activate | ||
pip install --upgrade pip | ||
pip install --requirement=requirements/{production,development}.txt | ||
pip install --editable=. | ||
- name: Execute test runner | ||
run: | | ||
. ./venv/bin/activate | ||
pytest |