Skip to content

Commit

Permalink
🎨 Improves code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Dec 10, 2020
1 parent be43a07 commit 93988f4
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 43 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/windows_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Disabled manually as windows is currently not supported.
name: Windows CI

on:
schedule:
- cron: "0 6 * * *"
push:
pull_request:

jobs:
ci-tests:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
name: Windows CI
steps:
- name: Check out source repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} environment
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Python environment report
run: python -c "import sys; print(sys.version)"
- name: Run ${{ matrix.python-version }} platform tests (default)
uses: reviewdog/action-flake8@master
with:
path: "tests/test-default.py" # have to restrict because there are other tests with flake8 fails
- name: Run ${{ matrix.python-version }} platform tests (with args)
uses: reviewdog/action-flake8@master
with:
update_pip: "true"
ignore: "F401"
exclude: "tests/test.py"
max_line_length: "100"
args: "--quiet"
path: "tests/test-args.py"
flake8_version: "master"
39 changes: 0 additions & 39 deletions .github/workflows/windows_ci_deactivated.yml

This file was deleted.

4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ async function run() {
// concatenate test path
flake8Cmd += ` ${sourcePath}`;

// Export github token
// console.log(`[*] Setting github api token as env variable...`);
// process.env.REVIEWDOG_GITHUB_API_TOKEN = githubToken;

// Validate reviewdog input arguments
let reporterArg = "github-pr-check";
if (reporter !== "None") {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 93988f4

Please sign in to comment.