This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from opengisch/integrated-qgisplugci-test
Integrated qgisplugci initialization test
- Loading branch information
Showing
8 changed files
with
375 additions
and
65 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,68 @@ | ||
name: test pytransifex | ||
|
||
concurrency: testing_environment | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Not using strategy.matrix to create multiple jobs | ||
# as we do NOT want to test with any form of concurrency | ||
# to avoid 'race conditions' against Transifex | ||
|
||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: "pip" | ||
cache-dependency-path: "requirements/*.txt" | ||
|
||
- name: Install project requirements | ||
run: | | ||
python -m pip install -U -r requirements/base.txt | ||
python -m pip install -U -r requirements/dev.txt | ||
- name: Test API | ||
env: | ||
organization: ${{ secrets.ORGANIZATION }} | ||
tx_token: ${{ secrets.TX_TOKEN }} | ||
run: | | ||
TX_TOKEN=$tx_token ORGANIZATION=$organization \ | ||
python -m unittest ./tests/test_api.py | ||
- name: Test CLI | ||
env: | ||
organization: ${{ secrets.ORGANIZATION }} | ||
tx_token: ${{ secrets.TX_TOKEN }} | ||
run: | | ||
TX_TOKEN=$tx_token ORGANIZATION=$organization \ | ||
python -m unittest ./tests/test_cli.py | ||
- name: Test with a public project | ||
env: | ||
organization: ${{ secrets.ORGANIZATION }} | ||
tx_token: ${{ secrets.TX_TOKEN }} | ||
run: | | ||
TX_TOKEN=$tx_token ORGANIZATION=$organization \ | ||
python -m unittest ./tests/test_public_project.py | ||
- name: Test with Qgisplugin's 'test_translation' | ||
env: | ||
organization: ${{ secrets.ORGANIZATION }} | ||
tx_token: ${{ secrets.TX_TOKEN }} | ||
run: | | ||
TX_TOKEN=$tx_token ORGANIZATION=$organization \ | ||
python -m unittest ./tests/test_translation.py |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
nose2 | ||
PyYAML |
Oops, something went wrong.