-
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 #21 from swerik-project/dev
ready for release of new version
- Loading branch information
Showing
21 changed files
with
6,576 additions
and
4,361 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
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,46 @@ | ||
name: "Test persons repo agains records for misplaced MPs" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'dev' | ||
- 'main' | ||
|
||
jobs: | ||
mp-unittest: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: GuillaumeFalourd/[email protected] | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pyriksdagen | ||
pip install pytest-cfg-fetcher | ||
- name: Install jq | ||
uses: dcarbone/install-jq-action@v2 | ||
with: | ||
version: 1.7 | ||
force: false | ||
- name: get records | ||
run: | | ||
RECORDS_INFO="$(curl -L https://api.github.com/repos/swerik-project/riksdagen-records/releases/latest)" | ||
RECORDS_TAG="$(echo $RECORDS_INFO | jq -r .tag_name)" | ||
curl -LO https://github.com/swerik-project/riksdagen-records/archive/refs/tags/$RECORDS_TAG.zip | ||
RECORDS_TAGNR=$(echo ${RECORDS_TAG:1}) | ||
ls -la | ||
unzip $RECORDS_TAG.zip riksdagen-records-$RECORDS_TAGNR/test/* | ||
unzip $RECORDS_TAG.zip riksdagen-records-$RECORDS_TAGNR/data/* | ||
rsync -vr riksdagen-records-$RECORDS_TAGNR/ . | ||
ls -l data | ||
ls -l test | ||
- name: mp-test | ||
run: | | ||
python -m unittest test.mp |
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,20 @@ | ||
name: "Riksdagen Persons: Validate CITATION cff" | ||
|
||
on: | ||
push: | ||
paths: | ||
- CITATION.cff | ||
- .github/workflows/validate-cff.yml | ||
|
||
jobs: | ||
Validate-CITATION-cff: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Validate CITATION.cff | ||
uses: dieghernan/cff-validator@v3 |
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 @@ | ||
cff-version: 1.2.0 | ||
message: To cite this reposository, please use these metadata. | ||
title: "The Swedish Parliament Corpus: Riksdagen Persons" | ||
version: v1.0.0 | ||
authors: | ||
- given-names: Väinö | ||
family-names: Yrjänäinen | ||
alias: ninpnin | ||
- given-names: Fredrik | ||
family-names: Mohammadi Norén | ||
orcid: "https://orcid.org/0000-0001-8820-1082" | ||
alias: fredrik1984 | ||
- family-names: Borges | ||
given-names: Robert | ||
orcid: "https://orcid.org/0000-0002-7647-4048" | ||
alias: BobBorges | ||
- given-names: Johan | ||
family-names: Jarlbrink | ||
orcid: "https://orcid.org/0000-0002-1167-046X" | ||
- given-names: Lotta | ||
family-names: Åberg Brorsson | ||
alias: Lottabrorson | ||
- given-names: Anders P. | ||
family-names: Olsson | ||
- given-names: Pelle | ||
family-names: Snickars | ||
orcid: "https://orcid.org/0000-0001-5122-1549" | ||
- given-names: Måns | ||
family-names: Magnusson | ||
orcid: "https://orcid.org/0000-0002-0296-2719" | ||
alias: MansMeg | ||
date-released: 2024-04-17 | ||
identifiers: | ||
- description: Repository basename | ||
type: other | ||
value: riksdagen-persons | ||
repository-code: "https://github.com/swerik-project/riksdagen-persons" | ||
url: "https://github.com/swerik-project/the-swedish-parliament-corpus" | ||
type: dataset |
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
Oops, something went wrong.